summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@google.com>2014-10-02 14:59:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-10-15 17:47:21 (GMT)
commit3c93c847cacea68e520f6099b18c69f406ab9407 (patch)
treedb74c28b1a5b35a28e5312adb64b6f06db0bf35f /refs.c
parent1054af7d04aef64378d69a0496b45cdbf6a0bef2 (diff)
downloadgit-3c93c847cacea68e520f6099b18c69f406ab9407.zip
git-3c93c847cacea68e520f6099b18c69f406ab9407.tar.gz
git-3c93c847cacea68e520f6099b18c69f406ab9407.tar.bz2
refs.c: lock_ref_sha1_basic is used for all refs
lock_ref_sha1_basic is used to lock refs that sit directly in the .git dir such as HEAD and MERGE_HEAD in addition to the more ordinary refs under "refs/". Remove the note claiming otherwise. Signed-off-by: Ronnie Sahlberg <sahlberg@google.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 2dcf6c6..4f2564d 100644
--- a/refs.c
+++ b/refs.c
@@ -2134,7 +2134,7 @@ int dwim_log(const char *str, int len, unsigned char *sha1, char **log)
}
/*
- * Locks a "refs/" ref returning the lock on success and NULL on failure.
+ * Locks a ref returning the lock on success and NULL on failure.
* On failure errno is set to something meaningful.
*/
static struct ref_lock *lock_ref_sha1_basic(const char *refname,