Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Make filenames line up in git-status output
author
Andy Parkins
<andyparkins@gmail.com>
Thu, 26 Oct 2006 14:17:24 +0000
(15:17 +0100)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 27 Oct 2006 01:30:56 +0000
(18:30 -0700)
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>
wt-status.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
35f401a
)
diff --git
a/wt-status.c
b/wt-status.c
index 4b74e6858400108fe4967cfd371d20915d806379..3952809c2a2d5526e5b97ad57a53b601906e01a2 100644
(file)
--- a/
wt-status.c
+++ b/
wt-status.c
@@
-72,25
+72,25
@@
static void wt_status_print_filepair(int t, struct diff_filepair *p)
color_printf(color(WT_STATUS_HEADER), "#\t");
switch (p->status) {
case DIFF_STATUS_ADDED:
color_printf(color(WT_STATUS_HEADER), "#\t");
switch (p->status) {
case DIFF_STATUS_ADDED:
- color_printf(c, "new file: %s", p->one->path); break;
+ color_printf(c, "new file:
%s", p->one->path); break;
case DIFF_STATUS_COPIED:
case DIFF_STATUS_COPIED:
- color_printf(c, "copied: %s -> %s",
+ color_printf(c, "copied:
%s -> %s",
p->one->path, p->two->path);
break;
case DIFF_STATUS_DELETED:
p->one->path, p->two->path);
break;
case DIFF_STATUS_DELETED:
- color_printf(c, "deleted: %s", p->one->path); break;
+ color_printf(c, "deleted:
%s", p->one->path); break;
case DIFF_STATUS_MODIFIED:
case DIFF_STATUS_MODIFIED:
- color_printf(c, "modified: %s", p->one->path); break;
+ color_printf(c, "modified:
%s", p->one->path); break;
case DIFF_STATUS_RENAMED:
case DIFF_STATUS_RENAMED:
- color_printf(c, "renamed: %s -> %s",
+ color_printf(c, "renamed:
%s -> %s",
p->one->path, p->two->path);
break;
case DIFF_STATUS_TYPE_CHANGED:
color_printf(c, "typechange: %s", p->one->path); break;
case DIFF_STATUS_UNKNOWN:
p->one->path, p->two->path);
break;
case DIFF_STATUS_TYPE_CHANGED:
color_printf(c, "typechange: %s", p->one->path); break;
case DIFF_STATUS_UNKNOWN:
- color_printf(c, "unknown: %s", p->one->path); break;
+ color_printf(c, "unknown:
%s", p->one->path); break;
case DIFF_STATUS_UNMERGED:
case DIFF_STATUS_UNMERGED:
- color_printf(c, "unmerged: %s", p->one->path); break;
+ color_printf(c, "unmerged:
%s", p->one->path); break;
default:
die("bug: unhandled diff status %c", p->status);
}
default:
die("bug: unhandled diff status %c", p->status);
}