projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce i18n.commitencoding.
[git.git]
/
name-rev.c
diff --git
a/name-rev.c
b/name-rev.c
index
59194f1
..
7d89401
100644
(file)
--- a/
name-rev.c
+++ b/
name-rev.c
@@
-217,10
+217,9
@@
int main(int argc, char **argv)
if (!strcmp(name, "undefined"))
continue;
if (!strcmp(name, "undefined"))
continue;
- fwrite(p_start, p - p_start, 1, stdout);
- fputc('(', stdout);
- fputs(name, stdout);
- fputc(')', stdout);
+ fwrite(p_start, p - p_start + 1, 1,
+ stdout);
+ printf(" (%s)", name);
p_start = p + 1;
}
}
p_start = p + 1;
}
}
@@
-230,8
+229,6
@@
int main(int argc, char **argv)
fwrite(p_start, p - p_start, 1, stdout);
}
} else if (all) {
fwrite(p_start, p - p_start, 1, stdout);
}
} else if (all) {
- extern struct object **objs;
- extern int nr_objs;
int i;
for (i = 0; i < nr_objs; i++)
int i;
for (i = 0; i < nr_objs; i++)