add: trivial style cleanup
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Felipe Contreras committed
Aug 30, 2013 at 16:56 UTC
d521abf8900dc38f88ed8fbb007848fb2a812510
1 file changed
+5
-5
builtin/add.c
+5
-5
@@ -336,7 +336,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
336
git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
337
338
if (read_cache() < 0)
339
- die (_("Could not read the index"));
339
+ die(_("Could not read the index"));
340
341
init_revisions(&rev, prefix);
342
rev.diffopt.context = 7;
@@ -347,11 +347,11 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
347
DIFF_OPT_SET(&rev.diffopt, IGNORE_DIRTY_SUBMODULES);
348
out = open(file, O_CREAT | O_WRONLY, 0666);
349
if (out < 0)
350
- die (_("Could not open '%s' for writing."), file);
350
+ die(_("Could not open '%s' for writing."), file);
351
rev.diffopt.file = xfdopen(out, "w");
352
rev.diffopt.close_file = 1;
353
if (run_diff_files(&rev, 0))
354
- die (_("Could not write patch"));
354
+ die(_("Could not write patch"));
355
356
launch_editor(file, NULL, NULL);
357
@@ -364,7 +364,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
364
child.git_cmd = 1;
365
child.argv = apply_argv;
366
if (run_command(&child))
367
- die (_("Could not apply '%s'"), file);
367
+ die(_("Could not apply '%s'"), file);
368
369
unlink(file);
370
free(file);
@@ -598,7 +598,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
598
599
unplug_bulk_checkin();
600
601
- finish:
601
+finish:
602
if (active_cache_changed) {
603
if (write_cache(newfd, active_cache, active_nr) ||
604
commit_locked_index(&lock_file))