projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08ca0b0
)
Remove extraneous ',' ';' and '.' characters from the full name gecos field.
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sun, 17 Apr 2005 23:52:54 +0000
(16:52 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sun, 17 Apr 2005 23:52:54 +0000
(16:52 -0700)
Apparently some distributions tend to have space for phone numbers etc there.
commit-tree.c
patch
|
blob
|
history
diff --git
a/commit-tree.c
b/commit-tree.c
index
b209575
..
93f3a57
100644
(file)
--- a/
commit-tree.c
+++ b/
commit-tree.c
@@
-96,6
+96,21
@@
static void remove_special(char *p)
if (!c)
break;
}
+
+ /*
+ * Go back, and remove crud from the end: some people
+ * have commas etc in their gecos field
+ */
+ dst--;
+ while (--dst >= p) {
+ unsigned char c = *dst;
+ switch (c) {
+ case ',': case ';': case '.':
+ *dst = 0;
+ continue;
+ }
+ break;
+ }
}
static const char *month_names[] = {