Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
verify_lock(): do not capitalize error messages
author
Michael Haggerty
<mhagger@alum.mit.edu>
Fri, 22 May 2015 23:34:56 +0000
(
01:34
+0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 27 May 2015 22:58:42 +0000
(15:58 -0700)
Our convention is for error messages to start with a lower-case
letter.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
33ffc17
)
diff --git
a/refs.c
b/refs.c
index 3a73cf2f164dcc71a74e59ce7f599d1631b78c12..2af4188ea454a1b23d35061502f7a52d60f862e0 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-2234,12
+2234,12
@@
static int verify_lock(struct ref_lock *lock,
mustexist ? RESOLVE_REF_READING : 0,
lock->old_sha1, NULL)) {
int save_errno = errno;
mustexist ? RESOLVE_REF_READING : 0,
lock->old_sha1, NULL)) {
int save_errno = errno;
- strbuf_addf(err, "
C
an't verify ref %s", lock->ref_name);
+ strbuf_addf(err, "
c
an't verify ref %s", lock->ref_name);
errno = save_errno;
return -1;
}
if (hashcmp(lock->old_sha1, old_sha1)) {
errno = save_errno;
return -1;
}
if (hashcmp(lock->old_sha1, old_sha1)) {
- strbuf_addf(err, "
R
ef %s is at %s but expected %s",
+ strbuf_addf(err, "
r
ef %s is at %s but expected %s",
lock->ref_name,
sha1_to_hex(lock->old_sha1),
sha1_to_hex(old_sha1));
lock->ref_name,
sha1_to_hex(lock->old_sha1),
sha1_to_hex(old_sha1));