aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-09-27 01:15:09 +0200
committerShawn O. Pearce <spearce@spearce.org>2009-09-29 08:14:47 -0700
commit1b018fd9be290fd6a70ce3093ab1dc1abce74e00 (patch)
tree4961e8dec3da9cd76e3d79b57c24c3cdf97d2c35 /cache.h
parent6bbfd1fa98b0c1fa1684bd35e64404799f0cc2b3 (diff)
downloadgit-1b018fd9be290fd6a70ce3093ab1dc1abce74e00.tar.gz
git-1b018fd9be290fd6a70ce3093ab1dc1abce74e00.tar.xz
git branch -D: give a better error message when lockfile creation fails
Previously the old error message just told the user that it was not possible to delete the ref from the packed-refs file. Give instructions on how to resolve the problem. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 1a6412dfd..a5eeead1e 100644
--- a/cache.h
+++ b/cache.h
@@ -489,6 +489,7 @@ struct lock_file {
};
#define LOCK_DIE_ON_ERROR 1
#define LOCK_NODEREF 2
+extern int unable_to_lock_error(const char *path, int err);
extern NORETURN void unable_to_lock_index_die(const char *path, int err);
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);