aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-06 16:42:52 -0700
committerJunio C Hamano <junkio@cox.net>2006-06-06 16:42:52 -0700
commit9941afc051d953ee5e8fd9a8a27c5cd659ef9552 (patch)
tree1c2e8296f1cb0e97e341c220a5246bd3154ced7a /cache.h
parent44fe4f522e63d3f01174459af674af2f9c293671 (diff)
parente5f38ec3c5d8553413501e6141932b8ccc7aceb4 (diff)
downloadgit-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.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cache.h b/cache.h
index d530af97cc..d5d7fe4f8c 100644
--- a/cache.h
+++ b/cache.h
@@ -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;