summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-06 11:23:04 -0700
committerJunio C Hamano <gitster@pobox.com>2014-06-06 11:23:04 -0700
commitf7f349e1383077fb9e1c03335a372b52a19ab2f0 (patch)
treeaf7577da1619d7d056b967f480c1c371d666488b /refs.h
parent43eb7cb260cb17e28dda12e8dc1eb5554e650841 (diff)
parent482b8f3208e797f00db58edd7ff0d67275e898f5 (diff)
downloadgit-f7f349e1383077fb9e1c03335a372b52a19ab2f0.tar.gz
Merge branch 'rs/reflog-exists'
* rs/reflog-exists: checkout.c: use ref_exists instead of file_exist refs.c: add new functions reflog_exists and delete_reflog
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index 0f08def210..09ff483c19 100644
--- a/refs.h
+++ b/refs.h
@@ -161,6 +161,12 @@ extern int read_ref_at(const char *refname, unsigned long at_time, int cnt,
unsigned char *sha1, char **msg,
unsigned long *cutoff_time, int *cutoff_tz, int *cutoff_cnt);
+/** Check if a particular reflog exists */
+extern int reflog_exists(const char *refname);
+
+/** Delete a reflog */
+extern int delete_reflog(const char *refname);
+
/* iterate over reflog entries */
typedef int each_reflog_ent_fn(unsigned char *osha1, unsigned char *nsha1, const char *, unsigned long, int, const char *, void *);
int for_each_reflog_ent(const char *refname, each_reflog_ent_fn fn, void *cb_data);