aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-reflog.txt
diff options
context:
space:
mode:
authorDavid Turner <dturner@twopensource.com>2015-07-21 17:04:53 -0400
committerJunio C Hamano <gitster@pobox.com>2015-07-21 14:08:14 -0700
commitafcb2e7a3b855887e79d1ee6d70ec80ab6456a64 (patch)
tree5c4413fe1e3a15342dee8e118dfa86c9e1f106dc /Documentation/git-reflog.txt
parentabd0cd3a3018e1c4e9e4437fb3911d6658e99fec (diff)
downloadgit-afcb2e7a3b855887e79d1ee6d70ec80ab6456a64.tar.gz
git-afcb2e7a3b855887e79d1ee6d70ec80ab6456a64.tar.xz
git-reflog: add exists command
This is necessary because alternate ref backends might store reflogs somewhere other than .git/logs. Code that now directly manipulates .git/logs should instead go through git-reflog. Signed-off-by: David Turner <dturner@twopensource.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-reflog.txt')
-rw-r--r--Documentation/git-reflog.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/git-reflog.txt b/Documentation/git-reflog.txt
index 5e7908e4f..44c736f1a 100644
--- a/Documentation/git-reflog.txt
+++ b/Documentation/git-reflog.txt
@@ -23,6 +23,7 @@ depending on the subcommand:
[--dry-run] [--verbose] [--all | <refs>...]
'git reflog delete' [--rewrite] [--updateref]
[--dry-run] [--verbose] ref@\{specifier\}...
+'git reflog exists' <ref>
Reference logs, or "reflogs", record when the tips of branches and
other references were updated in the local repository. Reflogs are
@@ -52,6 +53,9 @@ argument must be an _exact_ entry (e.g. "`git reflog delete
master@{2}`"). This subcommand is also typically not used directly by
end users.
+The "exists" subcommand checks whether a ref has a reflog. It exits
+with zero status if the reflog exists, and non-zero status if it does
+not.
OPTIONS
-------