Skip to content

Commit 5a5e4d2

Browse files
bbollipatthoyts
authored andcommitted
git-gui: remove .git/CHERRY_PICK_HEAD after committing
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 <[email protected]> Signed-off-by: Pat Thoyts <[email protected]>
1 parent 9ef7508 commit 5a5e4d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/commit.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ A rescan will be automatically started now.
409409
catch {file delete [gitdir MERGE_MSG]}
410410
catch {file delete [gitdir SQUASH_MSG]}
411411
catch {file delete [gitdir GITGUI_MSG]}
412+
catch {file delete [gitdir CHERRY_PICK_HEAD]}
412413

413414
# -- Let rerere do its thing.
414415
#

0 commit comments

Comments
 (0)