summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f9f3b2)
raw | patch | inline | side by side (parent: 6f9f3b2)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 5 Nov 2006 07:27:07 +0000 (02:27 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 5 Nov 2006 07:41:02 +0000 (23:41 -0800) |
At least one (older) version of the Solaris C compiler won't allow
'unsigned long x = -1' without explicitly casting -1 to a type of
unsigned long. So instead use ULONG_MAX, which is really the
correct constant anyway.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
'unsigned long x = -1' without explicitly casting -1 to a type of
unsigned long. So instead use ULONG_MAX, which is really the
correct constant anyway.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-apply.c | patch | blob | history |
diff --git a/builtin-apply.c b/builtin-apply.c
index f70ee98e2d68385124ac75b2c53f068e63a6bf86..6ec22b8daac0fc355c59bc25bacc5e0aa872e531 100644 (file)
--- a/builtin-apply.c
+++ b/builtin-apply.c
static int no_add;
static int show_index_info;
static int line_termination = '\n';
-static unsigned long p_context = -1;
+static unsigned long p_context = ULONG_MAX;
static const char apply_usage[] =
"git-apply [--stat] [--numstat] [--summary] [--check] [--index] [--cached] [--apply] [--no-add] [--index-info] [--allow-binary-replacement] [--reverse] [--reject] [--verbose] [-z] [-pNUM] [-CNUM] [--whitespace=<nowarn|warn|error|error-all|strip>] <patch>...";