summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3e564f3)
raw | patch | inline | side by side (parent: 3e564f3)
author | Alp Toker <alp@atoker.com> | |
Sun, 9 Jul 2006 09:36:24 +0000 (10:36 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 9 Jul 2006 10:31:36 +0000 (03:31 -0700) |
Signed-off-by: Alp Toker <alp@atoker.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-cvsexportcommit.txt | patch | blob | history | |
refs.c | patch | blob | history |
index 56bd3e517d80e6542a3aa118984aee0fefec2ab7..27ac72d98fcf8cf2cd0c0ab236e7646ecff7499d 100644 (file)
SYNOPSIS
--------
-'git-cvsexportcommmit' [-h] [-v] [-c] [-p] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
+'git-cvsexportcommit' [-h] [-v] [-c] [-p] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
DESCRIPTION
index 713ca467368e24f6112663b7b96921f9d1bbc145..2d9c1dc5d385b9bfcce293ba6d2c21018b9ae0af 100644 (file)
--- a/refs.c
+++ b/refs.c
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)
}
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);