diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-10-21 17:58:11 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-21 17:58:11 -0700 |
commit | a157400c972bbdeab2b5629658c99839c855f5ab (patch) | |
tree | 95c9ae9bf86dcc6e2bd4a3b0b217f5bef8622b59 /cache.h | |
parent | 6af50f7536d559f891d08597203ba605726511d6 (diff) | |
parent | acd3b9eca82e38950f94e4708b528b7dae09a7c8 (diff) | |
download | git-a157400c972bbdeab2b5629658c99839c855f5ab.tar.gz git-a157400c972bbdeab2b5629658c99839c855f5ab.tar.xz |
Merge branch 'jc/maint-co-track'
* jc/maint-co-track:
Enhance hold_lock_file_for_{update,append}() API
demonstrate breakage of detached checkout with symbolic link HEAD
Fix "checkout --track -b newbranch" on detached HEAD
Conflicts:
builtin-commit.c
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -423,6 +423,8 @@ struct lock_file { char on_list; char filename[PATH_MAX]; }; +#define LOCK_DIE_ON_ERROR 1 +#define LOCK_NODEREF 2 extern int hold_lock_file_for_update(struct lock_file *, const char *path, int); extern int hold_lock_file_for_append(struct lock_file *, const char *path, int); extern int commit_lock_file(struct lock_file *); |