Skip to content

Commit

Permalink
Fix typos involving the word 'commit'
Browse files Browse the repository at this point in the history
Signed-off-by: Alp Toker <alp@atoker.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Alp Toker authored and Junio C Hamano committed Jul 9, 2006
1 parent 3e564f3 commit ff4c848
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Documentation/git-cvsexportcommit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git-cvsexportcommit - Export a commit to a CVS checkout

SYNOPSIS
--------
'git-cvsexportcommmit' [-h] [-v] [-c] [-p] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
'git-cvsexportcommit' [-h] [-v] [-c] [-p] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID


DESCRIPTION
Expand Down
12 changes: 6 additions & 6 deletions refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static int log_ref_write(struct ref_lock *lock,
int logfd, written, oflags = O_APPEND | O_WRONLY;
unsigned maxlen, len;
char *logrec;
const char *comitter;
const char *committer;

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

setup_ident();
comitter = git_committer_info(1);
committer = git_committer_info(1);
if (msg) {
maxlen = strlen(comitter) + strlen(msg) + 2*40 + 5;
maxlen = strlen(committer) + strlen(msg) + 2*40 + 5;
logrec = xmalloc(maxlen);
len = snprintf(logrec, maxlen, "%s %s %s\t%s\n",
sha1_to_hex(lock->old_sha1),
sha1_to_hex(sha1),
comitter,
committer,
msg);
}
else {
maxlen = strlen(comitter) + 2*40 + 4;
maxlen = strlen(committer) + 2*40 + 4;
logrec = xmalloc(maxlen);
len = snprintf(logrec, maxlen, "%s %s %s\n",
sha1_to_hex(lock->old_sha1),
sha1_to_hex(sha1),
comitter);
committer);
}
written = len <= maxlen ? write(logfd, logrec, len) : -1;
free(logrec);
Expand Down

0 comments on commit ff4c848

Please sign in to comment.