git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Beat Bolli <bbolli@ewanet.ch>
To: git@vger.kernel.org
Cc: Beat Bolli <bbolli@ewanet.ch>
Subject: [PATCH 2/2] git-gui: remove .git/CHERRY_PICK_HEAD after committing
Date: Sat, 18 Aug 2012 11:07:31 +0200	[thread overview]
Message-ID: <1345280851-6626-2-git-send-email-bbolli@ewanet.ch> (raw)
In-Reply-To: <1345280851-6626-1-git-send-email-bbolli@ewanet.ch>

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>
---
 git-gui/lib/commit.tcl |    1 +
 1 file changed, 1 insertion(+)

diff --git a/git-gui/lib/commit.tcl b/git-gui/lib/commit.tcl
index 78c5eeb..864b687 100644
--- a/git-gui/lib/commit.tcl
+++ b/git-gui/lib/commit.tcl
@@ -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.
 	#
-- 
1.7.10.4

  reply	other threads:[~2012-08-18  9:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-18  9:07 [PATCH 1/2] git-gui: Fix a loose/lose mistake Beat Bolli
2012-08-18  9:07 ` Beat Bolli [this message]
2012-08-18 20:28   ` [PATCH 2/2] git-gui: remove .git/CHERRY_PICK_HEAD after committing Junio C Hamano
2012-09-17 11:52     ` Pat Thoyts
2012-08-18 20:24 ` [PATCH 1/2] git-gui: Fix a loose/lose mistake Junio C Hamano
2012-09-17 10:54   ` Pat Thoyts

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1345280851-6626-2-git-send-email-bbolli@ewanet.ch \
    --to=bbolli@ewanet.ch \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).