Teach the '@{...}' notation to git-log -g
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
11cf8801d7
commit
d271fd5311
@ -165,6 +165,14 @@ void add_reflog_for_walk(struct reflog_walk_info *info,
|
||||
if (item)
|
||||
reflogs = item->util;
|
||||
else {
|
||||
if (*branch == '\0') {
|
||||
unsigned char sha1[20];
|
||||
const char *head = resolve_ref("HEAD", sha1, 0, NULL);
|
||||
if (!head)
|
||||
die ("No current branch");
|
||||
free(branch);
|
||||
branch = xstrdup(head);
|
||||
}
|
||||
reflogs = read_complete_reflog(branch);
|
||||
if (!reflogs || reflogs->nr == 0)
|
||||
die("No reflogs found for '%s'", branch);
|
||||
|
Loading…
Reference in New Issue
Block a user