Skip to content

Commit

Permalink
git-gui: remove .git/CHERRY_PICK_HEAD after committing
Browse files Browse the repository at this point in the history
Adding _git_ps1() to one's bash prompt displays various repo status
info after each command. After committing a git cherry-pick -n using
git-gui, the prompt still contains the "|CHERRY-PICKING" flag.

Delete the file causing this flag when cleaning up.

Signed-off-by: Beat Bolli <bbolli@ewanet.ch>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
  • Loading branch information
Beat Bolli authored and Pat Thoyts committed Sep 17, 2012
1 parent 9ef7508 commit 5a5e4d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/commit.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ A rescan will be automatically started now.
catch {file delete [gitdir MERGE_MSG]}
catch {file delete [gitdir SQUASH_MSG]}
catch {file delete [gitdir GITGUI_MSG]}
catch {file delete [gitdir CHERRY_PICK_HEAD]}

# -- Let rerere do its thing.
#
Expand Down

0 comments on commit 5a5e4d2

Please sign in to comment.