@@ -54,13 +54,13 @@ def git_dir
5454end
5555
5656def git_editor
57- $git_editor ||= execute ( "git config core.editor" , :one => true ) ||
57+ $git_editor ||= execute ( "git config core.editor" , :one => true ) ||
5858 ENV [ 'VISUAL' ] || ENV [ 'EDITOR' ] || 'vi'
5959end
6060
6161def git_branch
62- $git_branch ||= execute ( "git branch" ,
63- :select => lambda { |l | l =~ /^\* / } ,
62+ $git_branch ||= execute ( "git branch" ,
63+ :select => lambda { |l | l =~ /^\* / } ,
6464 :filter => lambda { |l | l . sub ( /\* / , '' ) } ,
6565 :one => true )
6666end
@@ -71,7 +71,7 @@ def ref_to_hash ref
7171
7272def hash_to_str hash
7373 token = '--token--'
74- execute ( "git log -1 --pretty=format:'%h#{ token } %s' #{ hash } " ,
74+ execute ( "git log -1 --pretty=format:'%h#{ token } %s' #{ hash } " ,
7575 :one => true ) . split ( /#{ token } / )
7676end
7777
@@ -242,8 +242,8 @@ def flatten ref, refs, opts={}
242242 die "A flatten is in progress, try --continue, --skip or --abort." if stored_last
243243 squash = opts [ :squash ] || [ ]
244244 orig = parse_flatten ref , :read => true
245- target = rev_list ref ,
246- "^#{ git_branch } " , "^#{ orig } " ,
245+ target = rev_list ref ,
246+ "^#{ git_branch } " , "^#{ orig } " ,
247247 *[ refs , squash . map { |s | "^#{ s } " } ] . flatten
248248 end
249249 last = stored_last
0 commit comments