diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2007-05-09 12:33:20 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-05-10 15:24:44 -0700 |
commit | 68db31cc289c686c4b4454dfbb121aff59a6c602 (patch) | |
tree | e2a02bc97e8afad4327f9ece6bc81ca497f26602 /refs.h | |
parent | 843142ada000a992fa87bd2dc7796501332a52d9 (diff) | |
download | git-68db31cc289c686c4b4454dfbb121aff59a6c602.tar.gz |
git-update-ref: add --no-deref option for overwriting/detaching ref
git-checkout is also adapted to make use of this new option
instead of the handcrafted command sequence.
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -33,7 +33,8 @@ extern int get_ref_sha1(const char *ref, unsigned char *sha1); extern struct ref_lock *lock_ref_sha1(const char *ref, const unsigned char *old_sha1); /** Locks any ref (for 'HEAD' type refs). */ -extern struct ref_lock *lock_any_ref_for_update(const char *ref, const unsigned char *old_sha1); +#define REF_NODEREF 0x01 +extern struct ref_lock *lock_any_ref_for_update(const char *ref, const unsigned char *old_sha1, int flags); /** Release any lock taken but not written. **/ extern void unlock_ref(struct ref_lock *lock); |