From: David Turner Date: Fri, 26 Jun 2015 00:29:07 GMT Subject: [PATCH v3 6/7] git-reflog: add create and exists functions Message-ID: <1435278548-3790-6-git-send-email-dturner@twopensource.com> In-Reply-To: <1435278548-3790-1-git-send-email-dturner@twopensource.com> These are 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. In a moment, we will use these functions to make git stash work with alternate ref backends. Signed-off-by: David Turner --- builtin/reflog.c | 79 +++++++++++++++++++++++++++++++++++++++++++++++++- t/t1411-reflog-show.sh | 12 ++++++++ 2 files changed, 90 insertions(+), 1 deletion(-) diff --git a/builtin/reflog.c b/builtin/reflog.c index c2eb8ff..7fe31fa 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -13,6 +13,10 @@ static const char reflog_expire_usage[] = "git reflog expire [--expire=