Skip to content

Commit 02c62b1

Browse files
committed
Merge branch 'maint'
* maint: Documentation: Remove an odd "instead" fix portability problem with IS_RUN_COMMAND_ERR mailmap: resurrect lower-casing of email addresses
2 parents 477fde6 + 7634817 commit 02c62b1

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

Documentation/git-clone.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ then the cloned repository will become corrupt.
117117
--origin <name>::
118118
-o <name>::
119119
Instead of using the remote name 'origin' to keep track
120-
of the upstream repository, use <name> instead.
120+
of the upstream repository, use <name>.
121121

122122
--upload-pack <upload-pack>::
123123
-u <upload-pack>::

mailmap.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ static void add_mapping(struct string_list *map,
5050
{
5151
struct mailmap_entry *me;
5252
int index;
53+
char *p;
54+
55+
if (old_email)
56+
for (p = old_email; *p; p++)
57+
*p = tolower(*p);
58+
if (new_email)
59+
for (p = new_email; *p; p++)
60+
*p = tolower(*p);
61+
5362
if (old_email == NULL) {
5463
old_email = new_email;
5564
new_email = NULL;

run-command.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ enum {
1010
ERR_RUN_COMMAND_WAITPID_SIGNAL,
1111
ERR_RUN_COMMAND_WAITPID_NOEXIT,
1212
};
13-
#define IS_RUN_COMMAND_ERR(x) ((x) <= -ERR_RUN_COMMAND_FORK)
13+
#define IS_RUN_COMMAND_ERR(x) (-(x) >= ERR_RUN_COMMAND_FORK)
1414

1515
struct child_process {
1616
const char **argv;

0 commit comments

Comments
 (0)