Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
trailer: rename 'template' variables
author
Brandon Williams
<bmwill@google.com>
Wed, 14 Feb 2018 18:59:58 +0000
(10:59 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 22 Feb 2018 18:08:05 +0000
(10:08 -0800)
Rename C++ keyword in order to bring the codebase closer to being able
to be compiled with a C++ compiler.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ea8ace4
)
diff --git
a/trailer.c
b/trailer.c
index 5a4a2ecf9684e9aa95382b8ae46f457fc6bea5b0..c508c9b7521b48c18f1b373ada9b9f2e5b02681d 100644
(file)
--- a/
trailer.c
+++ b/
trailer.c
@@
-1000,7
+1000,7
@@
static struct tempfile *trailers_tempfile;
static FILE *create_in_place_tempfile(const char *file)
{
struct stat st;
static FILE *create_in_place_tempfile(const char *file)
{
struct stat st;
- struct strbuf template = STRBUF_INIT;
+ struct strbuf
filename_
template = STRBUF_INIT;
const char *tail;
FILE *outfile;
const char *tail;
FILE *outfile;
@@
-1014,11
+1014,11
@@
static FILE *create_in_place_tempfile(const char *file)
/* Create temporary file in the same directory as the original */
tail = strrchr(file, '/');
if (tail != NULL)
/* Create temporary file in the same directory as the original */
tail = strrchr(file, '/');
if (tail != NULL)
- strbuf_add(&template, file, tail - file + 1);
- strbuf_addstr(&template, "git-interpret-trailers-XXXXXX");
+ strbuf_add(&
filename_
template, file, tail - file + 1);
+ strbuf_addstr(&
filename_
template, "git-interpret-trailers-XXXXXX");
- trailers_tempfile = xmks_tempfile_m(template.buf, st.st_mode);
- strbuf_release(&template);
+ trailers_tempfile = xmks_tempfile_m(
filename_
template.buf, st.st_mode);
+ strbuf_release(&
filename_
template);
outfile = fdopen_tempfile(trailers_tempfile, "w");
if (!outfile)
die_errno(_("could not open temporary file"));
outfile = fdopen_tempfile(trailers_tempfile, "w");
if (!outfile)
die_errno(_("could not open temporary file"));