diff options
| author | Junio C Hamano <junkio@cox.net> | 2006-06-06 16:42:52 -0700 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2006-06-06 16:42:52 -0700 |
| commit | 9941afc051d953ee5e8fd9a8a27c5cd659ef9552 (patch) | |
| tree | 1c2e8296f1cb0e97e341c220a5246bd3154ced7a /cache.h | |
| parent | 44fe4f522e63d3f01174459af674af2f9c293671 (diff) | |
| parent | e5f38ec3c5d8553413501e6141932b8ccc7aceb4 (diff) | |
| download | git-9941afc051d953ee5e8fd9a8a27c5cd659ef9552.tar.xz | |
Merge branch 'jc/lockfile'
* jc/lockfile:
ref-log: style fixes.
refs.c: convert it to use lockfile interface.
Make index file locking code reusable to others.
Diffstat (limited to 'cache.h')
| -rw-r--r-- | cache.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -167,13 +167,13 @@ extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st); #define REFRESH_IGNORE_MISSING 0x0008 /* ignore non-existent */ extern int refresh_cache(unsigned int flags); -struct cache_file { - struct cache_file *next; - char lockfile[PATH_MAX]; +struct lock_file { + struct lock_file *next; + char filename[PATH_MAX]; }; -extern int hold_index_file_for_update(struct cache_file *, const char *path); -extern int commit_index_file(struct cache_file *); -extern void rollback_index_file(struct cache_file *); +extern int hold_lock_file_for_update(struct lock_file *, const char *path); +extern int commit_lock_file(struct lock_file *); +extern void rollback_lock_file(struct lock_file *); /* Environment bits from configuration mechanism */ extern int trust_executable_bit; |
