diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-20 12:38:10 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-20 12:38:10 -0700 |
commit | f406140baa5128bfa537c271c7292a866c08b7d4 (patch) | |
tree | c52ee64bfc197e86ee928f8e40056f46ab0f7be9 /revision.c | |
parent | 005a1de380733477382c50e2e44ed8042c401fed (diff) | |
parent | 9ba89f484e023827eca6ad44baf69af37dac4db3 (diff) | |
download | git-f406140baa5128bfa537c271c7292a866c08b7d4.tar.gz git-f406140baa5128bfa537c271c7292a866c08b7d4.tar.xz |
Merge branch 'fc/at-head'
Instead of typing four capital letters "HEAD", you can say "@" now,
e.g. "git log @".
* fc/at-head:
Add new @ shortcut for HEAD
sha1-name: pass len argument to interpret_branch_name()
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c index 172b0d3b2..0173e0148 100644 --- a/revision.c +++ b/revision.c @@ -200,7 +200,7 @@ static void add_pending_object_with_mode(struct rev_info *revs, revs->no_walk = 0; if (revs->reflog_info && obj->type == OBJ_COMMIT) { struct strbuf buf = STRBUF_INIT; - int len = interpret_branch_name(name, &buf); + int len = interpret_branch_name(name, 0, &buf); int st; if (0 < len && name[len] && buf.len) |