@matheusbsbs / matheus-bagliano / commits / 543551e53a
Fork 0

Make filenames line up in git-status output

When all the filenames line up it's much easier to copy and paste them somewhere else, or to remove the "modified:", "copied:", etc prefix. Signed-off-by: Andy Parkins <andyparkins@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Andy Parkins committed Oct 26, 2006 at 15:17 UTC 543551e53a8f8e52e72571e1f24f81d7f6598f9b
1 file changed +7 -7
wt-status.c
+7 -7
@@ -72,25 +72,25 @@ static void wt_status_print_filepair(int t, struct diff_filepair *p)
72 color_printf(color(WT_STATUS_HEADER), "#\t");
73 switch (p->status) {
74 case DIFF_STATUS_ADDED:
75 - color_printf(c, "new file: %s", p->one->path); break;
75 + color_printf(c, "new file: %s", p->one->path); break;
76 case DIFF_STATUS_COPIED:
77 - color_printf(c, "copied: %s -> %s",
77 + color_printf(c, "copied: %s -> %s",
78 p->one->path, p->two->path);
79 break;
80 case DIFF_STATUS_DELETED:
81 - color_printf(c, "deleted: %s", p->one->path); break;
81 + color_printf(c, "deleted: %s", p->one->path); break;
82 case DIFF_STATUS_MODIFIED:
83 - color_printf(c, "modified: %s", p->one->path); break;
83 + color_printf(c, "modified: %s", p->one->path); break;
84 case DIFF_STATUS_RENAMED:
85 - color_printf(c, "renamed: %s -> %s",
85 + color_printf(c, "renamed: %s -> %s",
86 p->one->path, p->two->path);
87 break;
88 case DIFF_STATUS_TYPE_CHANGED:
89 color_printf(c, "typechange: %s", p->one->path); break;
90 case DIFF_STATUS_UNKNOWN:
91 - color_printf(c, "unknown: %s", p->one->path); break;
91 + color_printf(c, "unknown: %s", p->one->path); break;
92 case DIFF_STATUS_UNMERGED:
93 - color_printf(c, "unmerged: %s", p->one->path); break;
93 + color_printf(c, "unmerged: %s", p->one->path); break;
94 default:
95 die("bug: unhandled diff status %c", p->status);
96 }