git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unmark after committing with git.el
@ 2006-12-06 12:43 Han-Wen Nienhuys
  2006-12-06 12:58 ` Jakub Narebski
  0 siblings, 1 reply; 4+ messages in thread
From: Han-Wen Nienhuys @ 2006-12-06 12:43 UTC (permalink / raw)
  To: git; +Cc: Alexandre Julliard


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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: unmark after committing with git.el
  2006-12-06 12:43 unmark after committing with git.el Han-Wen Nienhuys
@ 2006-12-06 12:58 ` Jakub Narebski
  2006-12-06 13:09   ` Han-Wen Nienhuys
  0 siblings, 1 reply; 4+ messages in thread
From: Jakub Narebski @ 2006-12-06 12:58 UTC (permalink / raw)
  To: git

Han-Wen Nienhuys wrote:

> 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. 

This should be in commit message.
 
> 
> 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>

But this break I think PCL-CVS behaviour compatibility. By the way,
[Backspace] should unmark all files.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: unmark after committing with git.el
  2006-12-06 12:58 ` Jakub Narebski
@ 2006-12-06 13:09   ` Han-Wen Nienhuys
  2006-12-06 14:24     ` Alexandre Julliard
  0 siblings, 1 reply; 4+ messages in thread
From: Han-Wen Nienhuys @ 2006-12-06 13:09 UTC (permalink / raw)
  To: git

Jakub Narebski escreveu:
> But this break I think PCL-CVS behaviour compatibility. By the way,
> [Backspace] should unmark all files.

it's M-DEL.

Is complete PCL-CVS compatibility a target?





From 62a005d36f97e9950c37a59ee5c976567d702d7a 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.

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.

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: unmark after committing with git.el
  2006-12-06 13:09   ` Han-Wen Nienhuys
@ 2006-12-06 14:24     ` Alexandre Julliard
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Julliard @ 2006-12-06 14:24 UTC (permalink / raw)
  To: hanwen; +Cc: git

Han-Wen Nienhuys <hanwen@xs4all.nl> writes:

> Jakub Narebski escreveu:
>> But this break I think PCL-CVS behaviour compatibility. By the way,
>> [Backspace] should unmark all files.
>
> it's M-DEL.
>
> Is complete PCL-CVS compatibility a target?

As far as possible, yes. Note that you don't need to unmark the files
to do the next commit, the files you just committed should be in the
up-to-date state, and those are ignored when committing (and in most
other operations too).

-- 
Alexandre Julliard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-06 14:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06 12:43 unmark after committing with git.el Han-Wen Nienhuys
2006-12-06 12:58 ` Jakub Narebski
2006-12-06 13:09   ` Han-Wen Nienhuys
2006-12-06 14:24     ` Alexandre Julliard

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).