diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-06-06 11:23:04 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-06 11:23:04 -0700 |
commit | f7f349e1383077fb9e1c03335a372b52a19ab2f0 (patch) | |
tree | af7577da1619d7d056b967f480c1c371d666488b /refs.h | |
parent | 43eb7cb260cb17e28dda12e8dc1eb5554e650841 (diff) | |
parent | 482b8f3208e797f00db58edd7ff0d67275e898f5 (diff) | |
download | git-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |