summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c66b6c0)
raw | patch | inline | side by side (parent: c66b6c0)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Sat, 6 May 2006 20:56:38 +0000 (22:56 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 6 May 2006 21:43:33 +0000 (14:43 -0700) |
When calling "git fmt-patch HEAD~5", you now get the same as if you would
have said "git fmt-patch HEAD~5..". This makes it easier for my fingers
which are so used to the old syntax.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
have said "git fmt-patch HEAD~5..". This makes it easier for my fingers
which are so used to the old syntax.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-diff.c | patch | blob | history | |
builtin-log.c | patch | blob | history |
diff --git a/builtin-diff.c b/builtin-diff.c
index 636edbf2a79f4e757866a08b221374e91e3dfe3b..20873162f98478b60b069e97305ab34425c5dde4 100644 (file)
--- a/builtin-diff.c
+++ b/builtin-diff.c
return 0;
}
-static void add_head(struct rev_info *revs)
+void add_head(struct rev_info *revs)
{
unsigned char sha1[20];
struct object *obj;
diff --git a/builtin-log.c b/builtin-log.c
index 0027998f1014b0e25f130fcdb53dc47fdc617c1e..d5bbc1cc06931974de46078b5cac17e315177e40 100644 (file)
--- a/builtin-log.c
+++ b/builtin-log.c
#include "log-tree.h"
#include "builtin.h"
+/* this is in builtin-diff.c */
+void add_head(struct rev_info *revs);
+
static int cmd_log_wc(int argc, const char **argv, char **envp,
struct rev_info *rev)
{
if (argc > 1)
die ("unrecognized argument: %s", argv[1]);
+ if (rev.pending_objects && rev.pending_objects->next == NULL) {
+ rev.pending_objects->item->flags |= UNINTERESTING;
+ add_head(&rev);
+ }
+
if (!use_stdout)
realstdout = fdopen(dup(1), "w");