Skip to content

Commit d521abf

Browse files
felipecgitster
authored andcommitted
add: trivial style cleanup
Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4e83ab3 commit d521abf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

builtin/add.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
336336
git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
337337

338338
if (read_cache() < 0)
339-
die (_("Could not read the index"));
339+
die(_("Could not read the index"));
340340

341341
init_revisions(&rev, prefix);
342342
rev.diffopt.context = 7;
@@ -347,11 +347,11 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
347347
DIFF_OPT_SET(&rev.diffopt, IGNORE_DIRTY_SUBMODULES);
348348
out = open(file, O_CREAT | O_WRONLY, 0666);
349349
if (out < 0)
350-
die (_("Could not open '%s' for writing."), file);
350+
die(_("Could not open '%s' for writing."), file);
351351
rev.diffopt.file = xfdopen(out, "w");
352352
rev.diffopt.close_file = 1;
353353
if (run_diff_files(&rev, 0))
354-
die (_("Could not write patch"));
354+
die(_("Could not write patch"));
355355

356356
launch_editor(file, NULL, NULL);
357357

@@ -364,7 +364,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
364364
child.git_cmd = 1;
365365
child.argv = apply_argv;
366366
if (run_command(&child))
367-
die (_("Could not apply '%s'"), file);
367+
die(_("Could not apply '%s'"), file);
368368

369369
unlink(file);
370370
free(file);
@@ -598,7 +598,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
598598

599599
unplug_bulk_checkin();
600600

601-
finish:
601+
finish:
602602
if (active_cache_changed) {
603603
if (write_cache(newfd, active_cache, active_nr) ||
604604
commit_locked_index(&lock_file))

0 commit comments

Comments
 (0)