summaryrefslogtreecommitdiff
path: root/Documentation/revisions.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-20 19:38:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-09-20 19:38:10 (GMT)
commitf406140baa5128bfa537c271c7292a866c08b7d4 (patch)
treec52ee64bfc197e86ee928f8e40056f46ab0f7be9 /Documentation/revisions.txt
parent005a1de380733477382c50e2e44ed8042c401fed (diff)
parent9ba89f484e023827eca6ad44baf69af37dac4db3 (diff)
downloadgit-f406140baa5128bfa537c271c7292a866c08b7d4.zip
git-f406140baa5128bfa537c271c7292a866c08b7d4.tar.gz
git-f406140baa5128bfa537c271c7292a866c08b7d4.tar.bz2
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 'Documentation/revisions.txt')
-rw-r--r--Documentation/revisions.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt
index 71dcd12..2c06ed3 100644
--- a/Documentation/revisions.txt
+++ b/Documentation/revisions.txt
@@ -58,6 +58,9 @@ the '$GIT_DIR/refs' directory or from the '$GIT_DIR/packed-refs' file.
While the ref name encoding is unspecified, UTF-8 is preferred as
some output processing may assume ref names in UTF-8.
+'@'::
+ '@' alone is a shortcut for 'HEAD'.
+
'<refname>@\{<date>\}', e.g. 'master@\{yesterday\}', 'HEAD@\{5 minutes ago\}'::
A ref followed by the suffix '@' with a date specification
enclosed in a brace