[RFC PATCH 6/7] update-index: rename "buf" to "line"
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Mar 23, 2022, 03:47 UTC
- Message-ID
- <RFC-patch-6.7-4fad333e9a1-20220323T033928Z-avarab@gmail.com>
- In-Reply-To
- <RFC-cover-0.7-00000000000-20220323T033928Z-avarab@gmail.com>
This variable renaming makes a subsequent more meaningful change smaller.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- builtin/update-index.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/builtin/update-index.c b/builtin/update-index.c index 1884124224c..af02ff39756 100644 --- a/builtin/update-index.c +++ b/builtin/update-index.c @@ -1194,15 +1194,15 @@ int cmd_update_index(int argc, const char **argv, const char *prefix) } if (read_from_stdin) { - struct strbuf buf = STRBUF_INIT; + struct strbuf line = STRBUF_INIT; struct strbuf unquoted = STRBUF_INIT; setup_work_tree(); - while (getline_fn(&buf, stdin) != EOF) - line_from_stdin(&buf, &unquoted, prefix, prefix_length, + while (getline_fn(&line, stdin) != EOF) + line_from_stdin(&line, &unquoted, prefix, prefix_length, nul_term_line, set_executable_bit, 0); strbuf_release(&unquoted); - strbuf_release(&buf); + strbuf_release(&line); } if (split_index > 0) {
-- 2.35.1.1428.g1c1a0152d61