summaryrefslogtreecommitdiffstats
path: root/t/t1411-reflog-show.sh
diff options
context:
space:
mode:
authorDavid Turner <dturner@twopensource.com>2015-07-21 23:04:53 +0200
committerJunio C Hamano <gitster@pobox.com>2015-07-21 23:08:14 +0200
commitafcb2e7a3b855887e79d1ee6d70ec80ab6456a64 (patch)
tree5c4413fe1e3a15342dee8e118dfa86c9e1f106dc /t/t1411-reflog-show.sh
parentrefs: new public ref function: safe_create_reflog (diff)
downloadgit-afcb2e7a3b855887e79d1ee6d70ec80ab6456a64.tar.xz
git-afcb2e7a3b855887e79d1ee6d70ec80ab6456a64.zip
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 't/t1411-reflog-show.sh')
-rwxr-xr-xt/t1411-reflog-show.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t1411-reflog-show.sh b/t/t1411-reflog-show.sh
index 6f47c0dd0e..3eb4f102e5 100755
--- a/t/t1411-reflog-show.sh
+++ b/t/t1411-reflog-show.sh
@@ -166,4 +166,9 @@ test_expect_success 'git log -g -p shows diffs vs. parents' '
test_cmp expect actual
'
+test_expect_success 'reflog exists works' '
+ git reflog exists refs/heads/master &&
+ ! git reflog exists refs/heads/nonexistent
+'
+
test_done