git/list[1] front-page[2] threads[3] people[4] search[5] about
 

unmark after committing with git.el

From
Han-Wen Nienhuys <hanwen@xs4all.nl>
Date
Dec 6, 2006, 12:43 UTC
Message-ID
<4576BB0B.9010200@xs4all.nl>
Hi,

in the usual workflow, I mark a few files, and then commit, and then mark another few for commit.

This patch removes the need to unmark between commits. 
From ad694b33e033e3638043cd2d2970e6248beecb91 Mon Sep 17 00:00:00 2001
From: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date: Wed, 6 Dec 2006 13:41:09 +0100
Subject: [PATCH] git.el: unmark files in after committing.
Signed-off-by: Han-Wen Nienhuys <hanwen@xs4all.nl>
---
 contrib/emacs/git.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index 972c402..642f7bb 100644
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
@@ -596,7 +596,8 @@ and returns the process output as a string."
                               (git-run-command nil nil "rerere"))
                             (git-refresh-files)
                             (git-refresh-ewoc-hf git-status)
-                            (message "Committed %s." commit))
+                            (message "Committed %s." commit)
+			    (git-unmark-all))
                         (message "Commit aborted."))))
                 (message "No files to commit.")))
           (delete-file index-file))))))
-- 
1.4.4.1.gc9922-dirty


-- 
 Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
Next: Jakub Narebski
Message 1 of 4 in “unmark after committing with git.el”
  1. Han-Wen NienhuysDec 6, 2006
  2. Jakub NarebskiDec 6, 2006
  3. Han-Wen NienhuysDec 6, 2006
  4. Alexandre JulliardDec 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.