aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-01 22:46:31 -0700
committerJunio C Hamano <gitster@pobox.com>2009-04-01 22:46:31 -0700
commit02c62b10de16515497f1b6fde6278ac531b90f1c (patch)
tree7c449c4212d6b05ed7e933cfb46f7a86e4cbe0de
parent477fde6ff3262a132f03376f86c9727c0f411723 (diff)
parent763481787174adfcc247d6044bea330edcb2cc24 (diff)
downloadgit-02c62b10de16515497f1b6fde6278ac531b90f1c.tar.gz
git-02c62b10de16515497f1b6fde6278ac531b90f1c.tar.xz
Merge branch 'maint'
* maint: Documentation: Remove an odd "instead" fix portability problem with IS_RUN_COMMAND_ERR mailmap: resurrect lower-casing of email addresses
-rw-r--r--Documentation/git-clone.txt2
-rw-r--r--mailmap.c9
-rw-r--r--run-command.h2
3 files changed, 11 insertions, 2 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index 95f08b911..4072f40d7 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -117,7 +117,7 @@ then the cloned repository will become corrupt.
--origin <name>::
-o <name>::
Instead of using the remote name 'origin' to keep track
- of the upstream repository, use <name> instead.
+ of the upstream repository, use <name>.
--upload-pack <upload-pack>::
-u <upload-pack>::
diff --git a/mailmap.c b/mailmap.c
index 654c6295c..bb1f2fb71 100644
--- a/mailmap.c
+++ b/mailmap.c
@@ -50,6 +50,15 @@ static void add_mapping(struct string_list *map,
{
struct mailmap_entry *me;
int index;
+ char *p;
+
+ if (old_email)
+ for (p = old_email; *p; p++)
+ *p = tolower(*p);
+ if (new_email)
+ for (p = new_email; *p; p++)
+ *p = tolower(*p);
+
if (old_email == NULL) {
old_email = new_email;
new_email = NULL;
diff --git a/run-command.h b/run-command.h
index 15e870a65..e34550284 100644
--- a/run-command.h
+++ b/run-command.h
@@ -10,7 +10,7 @@ enum {
ERR_RUN_COMMAND_WAITPID_SIGNAL,
ERR_RUN_COMMAND_WAITPID_NOEXIT,
};
-#define IS_RUN_COMMAND_ERR(x) ((x) <= -ERR_RUN_COMMAND_FORK)
+#define IS_RUN_COMMAND_ERR(x) (-(x) >= ERR_RUN_COMMAND_FORK)
struct child_process {
const char **argv;