summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c591412)
raw | patch | inline | side by side (parent: c591412)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 20 Jun 2005 23:14:13 +0000 (16:14 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 20 Jun 2005 23:14:13 +0000 (16:14 -0700) |
The unexpected thing is likely a pathname, we need the default for that
too.
too.
rev-parse.c | patch | blob | history |
diff --git a/rev-parse.c b/rev-parse.c
index 1f4f3240de895fe0f36cdd66ff435c6a10a19f2f..7419d18b3bff8b3fc1160095c69f6b273ae27148 100644 (file)
--- a/rev-parse.c
+++ b/rev-parse.c
printf("^%s\n", sha1_to_hex(sha1));
continue;
}
+ if (def) {
+ printf("%s\n", def);
+ def = NULL;
+ }
if (revs_only)
continue;
- def = NULL;
printf("%s\n", arg);
}
if (def)