Skip to content

Commit ff4c848

Browse files
Alp TokerJunio C Hamano
authored andcommitted
Fix typos involving the word 'commit'
Signed-off-by: Alp Toker <alp@atoker.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 3e564f3 commit ff4c848

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Documentation/git-cvsexportcommit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-cvsexportcommit - Export a commit to a CVS checkout
88

99
SYNOPSIS
1010
--------
11-
'git-cvsexportcommmit' [-h] [-v] [-c] [-p] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
11+
'git-cvsexportcommit' [-h] [-v] [-c] [-p] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
1212

1313

1414
DESCRIPTION

refs.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static int log_ref_write(struct ref_lock *lock,
362362
int logfd, written, oflags = O_APPEND | O_WRONLY;
363363
unsigned maxlen, len;
364364
char *logrec;
365-
const char *comitter;
365+
const char *committer;
366366

367367
if (log_all_ref_updates) {
368368
if (safe_create_leading_directories(lock->log_file) < 0)
@@ -380,23 +380,23 @@ static int log_ref_write(struct ref_lock *lock,
380380
}
381381

382382
setup_ident();
383-
comitter = git_committer_info(1);
383+
committer = git_committer_info(1);
384384
if (msg) {
385-
maxlen = strlen(comitter) + strlen(msg) + 2*40 + 5;
385+
maxlen = strlen(committer) + strlen(msg) + 2*40 + 5;
386386
logrec = xmalloc(maxlen);
387387
len = snprintf(logrec, maxlen, "%s %s %s\t%s\n",
388388
sha1_to_hex(lock->old_sha1),
389389
sha1_to_hex(sha1),
390-
comitter,
390+
committer,
391391
msg);
392392
}
393393
else {
394-
maxlen = strlen(comitter) + 2*40 + 4;
394+
maxlen = strlen(committer) + 2*40 + 4;
395395
logrec = xmalloc(maxlen);
396396
len = snprintf(logrec, maxlen, "%s %s %s\n",
397397
sha1_to_hex(lock->old_sha1),
398398
sha1_to_hex(sha1),
399-
comitter);
399+
committer);
400400
}
401401
written = len <= maxlen ? write(logfd, logrec, len) : -1;
402402
free(logrec);

0 commit comments

Comments
 (0)