aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-rev-parse.txt
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2006-05-17 05:56:09 -0400
committerJunio C Hamano <junkio@cox.net>2006-05-17 17:36:36 -0700
commitd556fae2c0ea063f15ea4c3678fe931cc426f1ca (patch)
treee6913e22bdc72e0222328ea8ae2b6ac5201c8bcd /Documentation/git-rev-parse.txt
parent6de08ae688b9f2426410add155079e04baff33bd (diff)
downloadgit-d556fae2c0ea063f15ea4c3678fe931cc426f1ca.tar.gz
git-d556fae2c0ea063f15ea4c3678fe931cc426f1ca.tar.xz
Support 'master@2 hours ago' syntax
Extended sha1 expressions may now include date specifications which indicate a point in time within the local repository's history. If the ref indicated to the left of '@' has a log in $GIT_DIR/logs/<ref> then the value of the ref at the time indicated by the specification is obtained from the ref's log. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-rev-parse.txt')
-rw-r--r--Documentation/git-rev-parse.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index ab896fcf8..df308c3f5 100644
--- a/Documentation/git-rev-parse.txt
+++ b/Documentation/git-rev-parse.txt
@@ -124,6 +124,12 @@ syntax.
happen to have both heads/master and tags/master, you can
explicitly say 'heads/master' to tell git which one you mean.
+* A suffix '@' followed by a date specification such as 'yesterday'
+ (24 hours ago) or '1 month 2 weeks 3 days 1 hour 1 second ago'
+ to specify the value of the ref at a prior point in time.
+ This suffix may only be used immediately following a ref name
+ and the ref must have an existing log ($GIT_DIR/logs/<ref>).
+
* A suffix '{caret}' to a revision parameter means the first parent of
that commit object. '{caret}<n>' means the <n>th parent (i.e.
'rev{caret}'