[PATCH v3 1/4] Makefile: remove tracking of TCLTK_PATH

2012-12-16 Thread Christian Couder
/Makefile by 62ba514 (Move gitk to its own subdirectory, 2007-11-17). Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- .gitignore | 1 - Makefile | 14 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index f702415..6d69ae1 100644

[PATCH v3 3/4] gitk-git/Makefile: track TCLTK_PATH as it used to be tracked

2012-12-16 Thread Christian Couder
as this one. And this patch puts some code back to track TCLTK_PATH properly where it should be, that is in gitk-git/Makefile. Note that there is already some code to do that in git-gui/Makefile. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- .gitignore | 1 - gitk-git

[PATCH v3 4/4] Makefile: replace echo 1... with echo ...

2012-12-16 Thread Christian Couder
This is clearer to many people this way. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Makefile | 10 +- git-gui/Makefile | 6 +++--- gitk-git/Makefile | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 7db8445

Re: [PATCH v2 1/2] Makefile: remove tracking of TCLTK_PATH

2012-12-16 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Christian Couder chrisc...@tuxfamily.org writes: It looks like we are tracking the value of TCLTK_PATH in the main Makefile for no good reason, as this is done in git-gui too and the GIT-GUI-VARS is not used in the Makefile. This was added

[PATCH] Makefile: track TCLTK_PATH as it used to be tracked

2012-12-18 Thread Christian Couder
a .gitignore and also marks some targets in the Makefile as PHONY. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Hi Paul, In this thread: http://thread.gmane.org/gmane.comp.version-control.git/211641 Junio asked me to send you this patch. So here it is, for you to apply to your tree

Re: [PATCH v3 3/4] gitk-git/Makefile: track TCLTK_PATH as it used to be tracked

2012-12-18 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com .gitignore | 1 - gitk-git/.gitignore | 2 ++ gitk-git/Makefile | 16 ++-- I'll apply the .gitignore part to my tree, but could you split the rest out and have Paul apply to his tree at git://ozlabs.org/~paulus/gitk.git

[PATCH v4 1/3] Makefile: remove tracking of TCLTK_PATH

2012-12-18 Thread Christian Couder
that has just been sent to Paul Mackerras, the gitk maintainer. While at it, this patch removes /gitk-git/gitk-wish from .gitignore as it should be in /gitk-git/.gitignore and the patch sent to Paul put it there. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Hi Junio, I removed from

[PATCH v4 2/3] Makefile: detect when PYTHON_PATH changes

2012-12-18 Thread Christian Couder
. We update a GIT-PYTHON-VARS file with the PYTHON_PATH and check if it changed. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- .gitignore | 1 + Makefile | 16 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 64a454b

[PATCH v4 3/3] Makefile: replace echo 1... with echo ...

2012-12-18 Thread Christian Couder
This is clearer to many people this way. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Makefile | 10 +- git-gui/Makefile | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 7db8445..e055c9a 100644 --- a/Makefile

[PATCH] Makefile: replace echo 1... with echo ...

2012-12-18 Thread Christian Couder
This is clearer to many people this way. A similar patch has been sent to the git mailing list for git.git. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Hi Pat, Here is a patch to apply to your git-gui tree following this discussion: http://thread.gmane.org/gmane.comp.version

[PATCH v5 1/3] Makefile: remove tracking of TCLTK_PATH

2012-12-18 Thread Christian Couder
that has just been sent to Paul Mackerras, the gitk maintainer. While at it, this patch removes /gitk-git/gitk-wish from .gitignore as it should be in /gitk-git/.gitignore and the patch sent to Paul put it there. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- .gitignore | 2 -- Makefile

[PATCH v5 3/3] Makefile: replace echo 1... with echo ...

2012-12-18 Thread Christian Couder
This is clearer to many people this way. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 7db8445..e055c9a 100644 --- a/Makefile +++ b/Makefile @@ -2183,7 +2183,7 @@ endef

[PATCH v5 2/3] Makefile: detect when PYTHON_PATH changes

2012-12-18 Thread Christian Couder
. We update a GIT-PYTHON-VARS file with the PYTHON_PATH and check if it changed. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- .gitignore | 1 + Makefile | 16 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 64a454b

Re: [PATCH 2/2] learn to pick/revert into unborn branch

2012-12-22 Thread Christian Couder
On Sun, Dec 23, 2012 at 7:24 AM, Martin von Zweigbergk martinv...@gmail.com wrote: As for use cases, I didn't consider that much more than that it might be useful for implementing git rebase --root. I haven't implemented that yet, so I can't say for sure that it will work out. One use case

Re: recovering a corrupted git repo

2013-01-07 Thread Christian Couder
On Mon, Jan 7, 2013 at 4:44 AM, Phillip Susi ps...@ubuntu.com wrote: I have not had any issue until I ran a git fsck recently, which repored gzip and crc errors in some pack files. git fsck does not seem to repair the errors, only report them. I would like to try to rebuild my repository,

Re: Google Summer of Code 2013 (GSoC13)

2013-02-19 Thread Christian Couder
On Mon, Feb 18, 2013 at 9:02 PM, Jens Lehmann jens.lehm...@web.de wrote: Am 18.02.2013 20:34, schrieb Jonathan Nieder: That said, I won't have time to mentor a project on my own. It takes a lot of time (or luck, to get the student that doesn't need mentoring). That's my experience too. Also

Re: Google Summer of Code 2013 (GSoC13)

2013-02-20 Thread Christian Couder
Hi, On Wed, Feb 20, 2013 at 7:50 AM, Shawn Pearce spea...@spearce.org wrote: On Mon, Feb 18, 2013 at 9:42 AM, Jeff King p...@peff.net wrote: On Mon, Feb 18, 2013 at 06:23:01PM +0100, Thomas Rast wrote: * We need an org admin. AFAIK this was done by Peff and Shawn in tandem last year.

Re: Bug: git web--browse doesn't recognise browser on OS X

2013-03-15 Thread Christian Couder
Hi, On Thu, Mar 14, 2013 at 12:39 PM, Timo Sand timo.j.s...@gmail.com wrote: Hi I tried to open a website by runnin 'git web--browse http://google.com' and it replied 'No known browser available'. First git web--browse is a plumbing shell script to display documentation on a web browser when

Re: Bug: git web--browse doesn't recognise browser on OS X

2013-03-24 Thread Christian Couder
On Fri, Mar 22, 2013 at 6:36 PM, John Szakmeister j...@szakmeister.net wrote: On Fri, Mar 22, 2013 at 12:19 PM, Timo Sand timo.j.s...@gmail.com wrote: Hi, well my use case is actually that I'm trying to use the gem 'gem-browse' which uses 'git web--browse' I'm not using Apple Terminal, I'm

Re: [PATCH] git-web--browse: recognize iTerm as a GUI terminal on OS X

2013-03-25 Thread Christian Couder
On Mon, Mar 25, 2013 at 11:13 AM, John Szakmeister j...@szakmeister.net wrote: Here's an updated patch. Thank you for it. For what it's worth: Acked-by: Christian Couder chrisc...@tuxfamily.org I also noticed that git-bisect.sh is also trying to determine if a GUI is present by looking

Re: Git and GSoC 2013

2013-03-27 Thread Christian Couder
On Wed, Mar 27, 2013 at 7:52 PM, Jonathan Nieder jrnie...@gmail.com wrote: Jeff King wrote: There was a big thread about a month ago on whether Git should do Google Summer of Code this year[1]. I think we should do it. It looks strange to me to say that students are great and at the same

Re: Git and GSoC 2013

2013-03-28 Thread Christian Couder
On Thu, Mar 28, 2013 at 5:45 PM, Junio C Hamano gits...@pobox.com wrote: Christian Couder christian.cou...@gmail.com writes: On Wed, Mar 27, 2013 at 7:52 PM, Jonathan Nieder jrnie...@gmail.com wrote: Jeff King wrote: There was a big thread about a month ago on whether Git should do Google

Re: RFC: Very useful script to SVG graph the git commits from a file orientated view

2013-04-09 Thread Christian Couder
Hi, On Tue, Apr 9, 2013 at 10:55 AM, Jeremy Rosen jeremy.ro...@openwide.fr wrote: looking a little bit more into this, I was very suprised there seems to be little/no tools in the git ecosystem that studies the dependencies between commits based on the file they modified and/or the

Re: [PATCH] bisect: Store first bad commit as comment in log file

2013-04-14 Thread Christian Couder
From: Torstein Hegge he...@resisty.net Subject: [PATCH] bisect: Store first bad commit as comment in log file Date: Sat, 13 Apr 2013 17:22:57 +0200 When bisect successfully finds a single revision, the first bad commit should be shown to human readers of 'git bisect log'. This resolves the

Re: [PATCH] bisect: Store first bad commit as comment in log file

2013-04-24 Thread Christian Couder
From: Torstein Hegge he...@resisty.net Subject: Re: [PATCH] bisect: Store first bad commit as comment in log file Date: Tue, 23 Apr 2013 00:20:58 +0200 On Mon, Apr 22, 2013 at 14:13:00 -0700, Junio C Hamano wrote: Torstein Hegge he...@resisty.net writes: I took another look at this. I

Re: RFC: git bisect should accept paths-to-be-excluded

2013-09-17 Thread Christian Couder
Hi, On Mon, Sep 16, 2013 at 2:39 PM, Toralf Förster toralf.foers...@gmx.de wrote: I'm bisecting a linux kernel issue and want to ignore all commits just touching something in ./drives/staging. Currently the only way would be to specify all dir/subdir combination under ./linux except that

Re: RFC: git bisect should accept paths-to-be-excluded

2013-09-17 Thread Christian Couder
On Tue, Sep 17, 2013 at 10:21 AM, Matthieu Moy matthieu@grenoble-inp.fr wrote: Christian Couder christian.cou...@gmail.com writes: In practice though, as git bisect is a kind of binary search, if what you want to exclude is exclusively touched by half the commits, it will only add one

Re: GSoC 2014: Summary so far, discussion starter: how to improve?

2013-10-19 Thread Christian Couder
Hi, On Sat, Oct 19, 2013 at 8:09 AM, Thomas Rast t...@thomasrast.ch wrote: Previous Episodes = Git participated in Google Summer of Code (GSoC) 2007-2012, but did not participate in 2013 based on discussion in February [1]. At Git-Merge in Berlin there was a discussion

[PATCH] sha1_file: move comment about return value where it belongs

2013-10-26 Thread Christian Couder
forgot to change or move the comment above this function that says returns enum object_type or negative. To fix this inconsistency, let's move the comment above the sha1_object_info function where it is still true. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- sha1_file.c | 2 +- 1

Re: [PATCH] commit: Add -f, --fixes commit option to add Fixes: line

2013-10-27 Thread Christian Couder
[Sorry I already sent the reply below to Johan only instead of everyone.] Hi Johan, On Sun, Oct 27, 2013 at 11:59 AM, Johan Herland jo...@herland.net wrote: On Sun, Oct 27, 2013 at 10:20 AM, Josh Triplett j...@joshtriplett.org wrote: ...good suggestion: ~/src/linux$ git log --grep='stable@'

Re: [PATCH] commit: Add -f, --fixes commit option to add Fixes: line

2013-10-28 Thread Christian Couder
On Mon, Oct 28, 2013 at 10:08 AM, Junio C Hamano gits...@pobox.com wrote: Thinking aloud further, what I had in mind was along the lines of the following. * The most generic external interface would be spelled as --trailer token[=param] where token can be things like signoff,

Re: [PATCH] commit: Add -f, --fixes commit option to add Fixes: line

2013-10-29 Thread Christian Couder
On Mon, Oct 28, 2013 at 3:46 AM, Johan Herland jo...@herland.net wrote: On Sun, Oct 27, 2013 at 8:04 PM, Christian Couder christian.cou...@gmail.com wrote: If git commit processes these arguments and puts the result in the commit message file that is passed to the prepare-commit-msg hook

Re: [PATCH] commit: Add -f, --fixes commit option to add Fixes: line

2013-11-02 Thread Christian Couder
On Wed, Oct 30, 2013 at 8:07 PM, Johan Herland jo...@herland.net wrote: On Tue, Oct 29, 2013 at 7:23 AM, Christian Couder christian.cou...@gmail.com wrote: I don't agree. Git doesn't need to dictate anything to be able to do these expansions. Git only needs some hints to do these expansions

[PATCH] builtin/remote: remove postfixcmp() and use suffixcmp() instead

2013-11-03 Thread Christian Couder
, it makes more sense to remove it and use suffixcmp() instead in builtin/remote.c, rather than to remove suffixcmp(). Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/remote.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/builtin/remote.c b

[RFC/PATCH] Add interpret-trailers builtin

2013-11-03 Thread Christian Couder
send a patch series instead of just one big patch when there will be fewer big changes in the code. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- .gitignore| 1 + Makefile | 1 + builtin.h | 1 + builtin/interpret

Re: [PATCH] builtin/remote: remove postfixcmp() and use suffixcmp() instead

2013-11-04 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Subject: Re: [PATCH] builtin/remote: remove postfixcmp() and use suffixcmp() instead Date: Mon, 04 Nov 2013 11:19:43 -0800 Christian Couder chrisc...@tuxfamily.org writes: Commit 8cc5b290 (git merge -Xoption, 25 Nov 2009) introduced suffixcmp

[PATCH 1/2] builtin/remote: remove postfixcmp() and use suffixcmp() instead

2013-11-04 Thread Christian Couder
nowhere else, it makes more sense to remove it and use suffixcmp() instead in builtin/remote.c, rather than to remove suffixcmp(). Reviewed-by: Jonathan Nieder jrnie...@gmail.com Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/remote.c | 14 +++--- 1 file changed, 3

[PATCH 2/2] strbuf: make it clear that suffixcmp() should not be used for sorting

2013-11-04 Thread Christian Couder
-by: Christian Couder chrisc...@tuxfamily.org --- strbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strbuf.c b/strbuf.c index 1170d01..9ba50de 100644 --- a/strbuf.c +++ b/strbuf.c @@ -16,7 +16,7 @@ int suffixcmp(const char *str, const char *suffix) if (len suflen

[PATCH] Rename suffixcmp() to has_suffix()

2013-11-04 Thread Christian Couder
As suffixcmp() should not be used as an ordering comparison function, and anything-cmp() ought to be usable as an ordering comparison function, suffixcmp() should be renamed to something that doesn't end with cmp. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Hi Junio

[PATCH v2] Rename suffixcmp() to has_suffix() and inverse its result

2013-11-04 Thread Christian Couder
. As we inverse the value returned by the function, we also have to inverse the ways its callers are using its returned value. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Hi Junio and Peff, So here is a new version of the patch to rename suffixcmp() into has_suffix(). We now inverse

Re: [RFC/PATCH] Add interpret-trailers builtin

2013-11-04 Thread Christian Couder
From: Johan Herland jo...@herland.net On Mon, Nov 4, 2013 at 8:12 PM, Junio C Hamano gits...@pobox.com wrote: Johan Herland jo...@herland.net writes: +{ + char *end = strchr(arg, '='); + if (!end) + end = strchr(arg, ':'); So both '=' (preferred) and ':' are

[PATCH v3 2/2] Rename suffixcmp() to has_suffix() and invert its result

2013-11-05 Thread Christian Couder
Now has_suffix() returns 1 when the suffix is present and 0 otherwise. The old name followed the pattern anything-cmp(), which suggests a general comparison function suitable for e.g. sorting objects. But this was not the case for suffixcmp(). Signed-off-by: Christian Couder chrisc

[PATCH v3 1/2] builtin/remote: remove postfixcmp() and use suffixcmp() instead

2013-11-05 Thread Christian Couder
nowhere else, it makes more sense to remove it and use suffixcmp() instead in builtin/remote.c, rather than to remove suffixcmp(). Reviewed-by: Jonathan Nieder jrnie...@gmail.com Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Hi everyone, Here is another version of the series. The first

Re: [RFC/PATCH] Add interpret-trailers builtin

2013-11-05 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Christian Couder chrisc...@tuxfamily.org writes: * trailer seems better than commitTrailer as the config key because it looks like all the config keys are lower case and committrailer is not very readable. And closes the door for other things from

Re: [RFC/PATCH] Add interpret-trailers builtin

2013-11-06 Thread Christian Couder
On Wed, Nov 6, 2013 at 7:43 AM, Christian Couder chrisc...@tuxfamily.org wrote: Of course in the latter case, a command should probably be specified to tell which value should be used with the key. For example: [trailer signoff] key = Signed-off-by: if_missing = append

Re: [RFC/PATCH] Add interpret-trailers builtin

2013-11-06 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Christian Couder christian.cou...@gmail.com writes: To append a s-o-b only if there is no s-o-b already, one would need to use: [trailer signoff] key = Signed-off-by: if_exist = dont_append if_missing = append

Re: [ANNOUNCE] Git v1.8.5-rc1

2013-11-07 Thread Christian Couder
On Thu, Nov 7, 2013 at 12:57 AM, Junio C Hamano gits...@pobox.com wrote: * git replace helper no longer allows an object to be replaced with another object of a different type to avoid confusion (you can still manually craft such replacement using git update-ref, as an escape

Re: [PATCH v3 2/2] Rename suffixcmp() to has_suffix() and invert its result

2013-11-07 Thread Christian Couder
On Thu, Nov 7, 2013 at 1:12 AM, Junio C Hamano gits...@pobox.com wrote: Jonathan Nieder jrnie...@gmail.com writes: The old name followed the pattern anything-cmp(), which suggests a general comparison function suitable for e.g. sorting objects. But this was not the case for suffixcmp().

Re: [RFC/PATCH] Add interpret-trailers builtin

2013-11-07 Thread Christian Couder
On Wed, Nov 6, 2013 at 9:42 PM, Junio C Hamano gits...@pobox.com wrote: Christian Couder chrisc...@tuxfamily.org writes: From: Junio C Hamano gits...@pobox.com But that is insufficient to emulate what we do, no? I.e. append unless the last one is from the same person we are about to add

[PATCH 20/86] http: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- http.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/http.c b/http.c index f3e1439..f2621cd 100644 --- a/http.c +++ b/http.c @@ -422,7 +422,7 @@ void http_init(struct remote *remote, const char *url, int

[PATCH 23/86] log-tree: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- log-tree.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/log-tree.c b/log-tree.c index 8534d91..25b46a9 100644 --- a/log-tree.c +++ b/log-tree.c @@ -98,7 +98,7 @@ static int add_ref_decoration(const char

[PATCH 24/86] merge-recursive: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- merge-recursive.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/merge-recursive.c b/merge-recursive.c index dbb7104..9043362 100644 --- a/merge-recursive.c +++ b/merge-recursive.c @@ -2063,13 +2063,13 @@ int

[PATCH 17/86] tag: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- tag.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tag.c b/tag.c index 78d272b..0b00c76 100644 --- a/tag.c +++ b/tag.c @@ -86,7 +86,7 @@ int parse_tag_buffer(struct tag *item, const void *data, unsigned

[PATCH 01/86] strbuf: add has_prefix() to be used instead of prefixcmp()

2013-11-08 Thread Christian Couder
it with a function that just checks for equality. As a first step toward this goal, this patch introduces has_prefix(). Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- git-compat-util.h | 1 + strbuf.c | 9 + 2 files changed, 10 insertions(+) diff --git a/git-compat

[PATCH 18/86] sequencer: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- sequencer.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sequencer.c b/sequencer.c index 06e52b4..64cc6f0 100644 --- a/sequencer.c +++ b/sequencer.c @@ -41,7 +41,7 @@ static int is_cherry_picked_from_line

[PATCH 14/86] parse-options: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- parse-options.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/parse-options.c b/parse-options.c index 62e9b1c..4f7fddc 100644 --- a/parse-options.c +++ b/parse-options.c @@ -273,13 +273,13

[PATCH 27/86] setup: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.c b/setup.c index f08dd64..6ed292a 100644 --- a/setup.c +++ b/setup.c @@ -82,7 +82,7 @@ int check_filename(const char *prefix, const char *arg

[PATCH 31/86] send-pack: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- send-pack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/send-pack.c b/send-pack.c index b228d65..c90049a 100644 --- a/send-pack.c +++ b/send-pack.c @@ -109,7 +109,7 @@ static int receive_status(int in, struct

[PATCH 00/86] replace prefixcmp() with has_prefix()

2013-11-08 Thread Christian Couder
difficult to understand the logic. Of course it's possible to squash many of the commits together if it is prefered. Christian Couder (86): strbuf: add has_prefix() to be used instead of prefixcmp() diff: replace prefixcmd() with has_prefix() fast-import: replace prefixcmd() with has_prefix

[PATCH 34/86] pkt-line: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- pkt-line.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkt-line.c b/pkt-line.c index 70f1950..d967727 100644 --- a/pkt-line.c +++ b/pkt-line.c @@ -24,8 +24,8 @@ static void packet_trace(const char *buf

[PATCH 26/86] refs: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- refs.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/refs.c b/refs.c index 3710748..3dc38df 100644 --- a/refs.c +++ b/refs.c @@ -637,7 +637,7 @@ static int do_one_ref(struct

[PATCH 49/86] builtin/clean: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/clean.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/clean.c b/builtin/clean.c index 615cd57..98887cd 100644 --- a/builtin/clean.c +++ b/builtin/clean.c @@ -100,7 +100,7 @@ static int

[PATCH 25/86] notes: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- notes.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notes.c b/notes.c index b69c0b8..e23d38a 100644 --- a/notes.c +++ b/notes.c @@ -1243,9 +1243,9 @@ static void format_note(struct notes_tree *t, const

[PATCH 04/86] remote*: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- remote-curl.c| 14 +++--- remote-testsvn.c | 10 +- remote.c | 46 +++--- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/remote-curl.c b/remote-curl.c

[PATCH 35/86] alias: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- alias.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alias.c b/alias.c index eb9f08b..0933c87 100644 --- a/alias.c +++ b/alias.c @@ -5,7 +5,7 @@ static char *alias_val; static int alias_lookup_cb(const char *k

[PATCH 12/86] upload-pack: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- upload-pack.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/upload-pack.c b/upload-pack.c index a6c54e0..ce4ae75 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -394,7 +394,7 @@ static int

[PATCH 07/86] revision: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- revision.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/revision.c b/revision.c index 0173e01..968320a 100644 --- a/revision.c +++ b/revision.c @@ -1576,9 +1576,9 @@ static

[PATCH 43/86] submodule: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- submodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodule.c b/submodule.c index 1905d75..21fe14e 100644 --- a/submodule.c +++ b/submodule.c @@ -201,7 +201,7 @@ void set_diffopt_flags_from_submodule_config

[PATCH 47/86] builtin/branch: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/branch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/branch.c b/builtin/branch.c index ad0f86d..c4cb81c 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -81,13 +81,13 @@ static int

[PATCH 44/86] test-string-list: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- test-string-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-string-list.c b/test-string-list.c index 00ce6c9..e04a37c 100644 --- a/test-string-list.c +++ b/test-string-list.c @@ -38,7 +38,7 @@ static void

[PATCH 51/86] builtin/column: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/column.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/column.c b/builtin/column.c index e125a55..3664cc1 100644 --- a/builtin/column.c +++ b/builtin/column.c @@ -34,7 +34,7 @@ int cmd_column(int

[PATCH 50/86] builtin/clone: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/clone.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/clone.c b/builtin/clone.c index 84fb1bd..49b7a08 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -508,7 +508,7 @@ static void

[PATCH 33/86] notes-utils: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- notes-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notes-utils.c b/notes-utils.c index 9107c37..0a4c3de 100644 --- a/notes-utils.c +++ b/notes-utils.c @@ -70,7 +70,7 @@ static combine_notes_fn

[PATCH 32/86] http-backend: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- http-backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http-backend.c b/http-backend.c index 8c464bd..d0183b1 100644 --- a/http-backend.c +++ b/http-backend.c @@ -226,7 +226,7 @@ static int http_config

[PATCH 55/86] builtin/fetch-pack: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/fetch-pack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/fetch-pack.c b/builtin/fetch-pack.c index c8e8582..29a3b33 100644 --- a/builtin/fetch-pack.c +++ b/builtin/fetch-pack.c @@ -48,11

[PATCH 19/86] commit: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- commit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commit.c b/commit.c index de16a3c..35b276d 100644 --- a/commit.c +++ b/commit.c @@ -559,7 +559,7 @@ static void record_author_date(struct author_date_slab

[PATCH 52/86] builtin/commit: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/commit.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/builtin/commit.c b/builtin/commit.c index 6ab4605..a8c46c6 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -733,7 +733,7 @@ static

[PATCH 02/86] diff: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- diff.c | 56 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/diff.c b/diff.c index a04a34d..b42523a 100644 --- a/diff.c +++ b/diff.c @@ -235,7 +235,7 @@ int

[PATCH 40/86] environment: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- environment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.c b/environment.c index 378254c..827c6e8 100644 --- a/environment.c +++ b/environment.c @@ -176,7 +176,7 @@ const char *get_git_namespace(void

[PATCH 29/86] branch: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- branch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/branch.c b/branch.c index 9e6c68e..fc3a61d 100644 --- a/branch.c +++ b/branch.c @@ -50,7 +50,7 @@ static int should_setup_rebase(const char *origin) void

[PATCH 59/86] builtin/fsck: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/fsck.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/fsck.c b/builtin/fsck.c index 97ce678..a80e51f 100644 --- a/builtin/fsck.c +++ b/builtin/fsck.c @@ -442,7 +442,7 @@ static void fsck_dir(int

[PATCH 10/86] sha1_name: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- sha1_name.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sha1_name.c b/sha1_name.c index 0e5fe7f..3224a39 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -547,7 +547,7 @@ static int get_sha1_basic

[PATCH 11/86] wt-status: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- wt-status.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wt-status.c b/wt-status.c index b4e44ba..47806d1 100644 --- a/wt-status.c +++ b/wt-status.c @@ -803,7 +803,7 @@ static void

[PATCH 28/86] bisect: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- bisect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bisect.c b/bisect.c index 1e46a4f..4819091 100644 --- a/bisect.c +++ b/bisect.c @@ -406,9 +406,9 @@ static int register_ref(const char *refname, const

[PATCH 48/86] builtin/checkout: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/checkout.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builtin/checkout.c b/builtin/checkout.c index 0f57397..7ce15dd 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -781,7 +781,7

[PATCH 39/86] convert: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.c b/convert.c index 11a95fc..dc5d3ed 100644 --- a/convert.c +++ b/convert.c @@ -1121,7 +1121,7 @@ static int is_foreign_ident(const char *str

[PATCH 45/86] builtin/apply: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/apply.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/builtin/apply.c b/builtin/apply.c index ef32e4f..49028da 100644 --- a/builtin/apply.c +++ b/builtin/apply.c @@ -1409,10 +1409,10 @@ static

[PATCH 13/86] test-line-buffer: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- test-line-buffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-line-buffer.c b/test-line-buffer.c index ef1d7ba..ed0d681 100644 --- a/test-line-buffer.c +++ b/test-line-buffer.c @@ -19,7 +19,7 @@ static

[PATCH 58/86] builtin/for-each-ref: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/for-each-ref.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/builtin/for-each-ref.c b/builtin/for-each-ref.c index 1d4083c..c22f200 100644 --- a/builtin/for-each-ref.c +++ b/builtin/for-each

[PATCH 05/86] daemon: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- daemon.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/daemon.c b/daemon.c index 34916c5..4b23800 100644 --- a/daemon.c +++ b/daemon.c @@ -235,7 +235,7 @@ static int

[PATCH 41/86] shell: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.c b/shell.c index 66350b2..3bbe774 100644 --- a/shell.c +++ b/shell.c @@ -15,7 +15,7 @@ static int do_generic_cmd(const char *me, char *arg

[PATCH 57/86] builtin/fmt-merge-msg: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/fmt-merge-msg.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/builtin/fmt-merge-msg.c b/builtin/fmt-merge-msg.c index 1c04070..09a55bf 100644 --- a/builtin/fmt-merge-msg.c +++ b/builtin/fmt-merge

[PATCH 09/86] config: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- config.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config.c b/config.c index e1d66a1..8d5d70c 100644 --- a/config.c +++ b/config.c @@ -969,25 +969,25 @@ static int git_default_mailmap_config

[PATCH 56/86] builtin/fetch: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/fetch.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/builtin/fetch.c b/builtin/fetch.c index 8eb6cd0..78d4add 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -313,7 +313,7 @@ static

[PATCH 37/86] connect: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.c b/connect.c index 4086861..1cb4090 100644 --- a/connect.c +++ b/connect.c @@ -87,7 +87,7 @@ struct ref **get_remote_heads(int in, char *src_buf

[PATCH 06/86] pretty: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- pretty.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/pretty.c b/pretty.c index b4e32b7..961241a 100644 --- a/pretty.c +++ b/pretty.c @@ -40,7 +40,7 @@ static int

[PATCH 36/86] attr: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attr.c b/attr.c index 0e774c6..4c11f30 100644 --- a/attr.c +++ b/attr.c @@ -211,7 +211,7 @@ static struct match_attr *parse_attr_line(const char *line, const

[PATCH 54/86] builtin/fast-export: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/fast-export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/fast-export.c b/builtin/fast-export.c index 78250ea..8a9136b 100644 --- a/builtin/fast-export.c +++ b/builtin/fast-export.c @@ -476,7

[PATCH 53/86] builtin/describe: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/describe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/describe.c b/builtin/describe.c index b9d3603..102d958 100644 --- a/builtin/describe.c +++ b/builtin/describe.c @@ -141,7 +141,7 @@ static

[PATCH 46/86] builtin/archive: replace prefixcmd() with has_prefix()

2013-11-08 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/archive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/archive.c b/builtin/archive.c index 49178f1..b808bb5 100644 --- a/builtin/archive.c +++ b/builtin/archive.c @@ -57,9 +57,9 @@ static int

<    1   2   3   4   5   6   7   8   9   10   >