[PATCH v5 09/14] trailer: if no input file is passed, read from stdin

2014-02-06 Thread Christian Couder
It is simpler and more natural if the git interpret-trailers is made a filter as its output already goes to sdtout. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- builtin/interpret-trailers.c | 2 +- t/t7513-interpret-trailers.sh | 7 +++ trailer.c | 15

[PATCH v5 02/14] trailer: process trailers from file and arguments

2014-02-06 Thread Christian Couder
be applied, it is removed from its list and inserted into the infile_tok list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 187 ++ 1 file changed, 187 insertions(+) diff --git a/trailer.c b/trailer.c index f129b5a

[PATCH v5 05/14] trailer: parse trailers from input file

2014-02-06 Thread Christian Couder
This patch reads trailers from an input file, parses them and puts the result into a doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 71 +++ 1 file changed, 71 insertions(+) diff --git

[PATCH v5 10/14] trailer: execute command from 'trailer.name.command'

2014-02-06 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 63 +++ 1 file changed, 63 insertions(+) diff --git a/trailer.c b/trailer.c index 108e104..98187fc 100644 --- a/trailer.c +++ b/trailer.c @@ -1,4 +1,5 @@ #include

[PATCH v5 04/14] trailer: process command line trailer arguments

2014-02-06 Thread Christian Couder
This patch parses the trailer command line arguments and put the result into an arg_tok doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 84 +++ 1 file changed, 84 insertions(+) diff --git

Re: [PATCH v5 07/14] trailer: add interpret-trailers command

2014-02-07 Thread Christian Couder
On Fri, Feb 7, 2014 at 1:10 AM, Junio C Hamano gits...@pobox.com wrote: Christian Couder chrisc...@tuxfamily.org writes: diff --git a/git.c b/git.c index 3799514..1420b58 100644 --- a/git.c +++ b/git.c @@ -383,6 +383,7 @@ static void handle_internal_command(int argc, const char **argv

Re: [PATCH v5 01/14] Add data structures and basic functions for commit trailers

2014-02-09 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Christian Couder chrisc...@tuxfamily.org writes: +enum action_where { WHERE_AFTER, WHERE_BEFORE }; +enum action_if_exist { EXIST_ADD_IF_DIFFERENT, EXIST_ADD_IF_DIFFERENT_NEIGHBOR, + EXIST_ADD, EXIST_OVERWRITE, EXIST_DO_NOTHING

Re: [PATCH v5 01/14] Add data structures and basic functions for commit trailers

2014-02-09 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Christian Couder chrisc...@tuxfamily.org writes: +enum action_if_exist if_exist; +enum action_if_missing if_missing; Probably if_exists is more gramatically correct. if (x-if_exists) { ... do this ... } would

Re: [PATCH v5 02/14] trailer: process trailers from file and arguments

2014-02-09 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Christian Couder chrisc...@tuxfamily.org writes: +static void apply_arg_if_exist(struct trailer_item *infile_tok, + struct trailer_item *arg_tok, + int alnum_len) +{ +switch (arg_tok-conf

Re: [PATCH v4 10/17] trailer: if no input file is passed, read from stdin

2014-02-09 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Subject: Re: [PATCH v4 10/17] trailer: if no input file is passed, read from stdin Date: Thu, 06 Feb 2014 13:51:36 -0800 Christian Couder chrisc...@tuxfamily.org writes: It is simpler and more natural if the git interpret-trailers is made a filter

Re: [PATCH v5 04/14] trailer: process command line trailer arguments

2014-02-09 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Subject: Re: [PATCH v5 04/14] trailer: process command line trailer arguments Date: Thu, 06 Feb 2014 16:08:24 -0800 Christian Couder chrisc...@tuxfamily.org writes: This patch parses the trailer command line arguments and put the result into an arg_tok

Re: [PATCH v5 02/14] trailer: process trailers from file and arguments

2014-02-10 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Subject: Re: [PATCH v5 02/14] trailer: process trailers from file and arguments Date: Mon, 10 Feb 2014 10:14:34 -0800 Christian Couder chrisc...@tuxfamily.org writes: This is what if_exists and if_missing are all about. Either: the same key

Re: [PATCH v5 02/14] trailer: process trailers from file and arguments

2014-02-11 Thread Christian Couder
On Mon, Feb 10, 2014 at 9:51 PM, Junio C Hamano gits...@pobox.com wrote: Christian Couder chrisc...@tuxfamily.org writes: Many entries with the same key but distinct values can be configured using: if_exists = add_if_different if_missing = add Many entries with the same key but values

Re: [RFH] hackday and GSoC topic suggestions

2014-02-13 Thread Christian Couder
On Thu, Feb 13, 2014 at 9:50 AM, Jeff King p...@peff.net wrote: On Thu, Feb 06, 2014 at 10:51:54AM +0100, Matthieu Moy wrote: Some of Matthieu's students worked on it a few years ago but didn't finish. Right. There was still quite some work to do, but this is most likely too small for a

Re: [PATCH v5 02/14] trailer: process trailers from file and arguments

2014-02-14 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com These numerous questions you have to ask are indications why choosing this condition goes to the left hand side of the equal sign (e.g. exists) and this condition goes to the right hand side (e.g. do-this-if_neighbor) is not working well. The user has

Re: [PATCH v5 02/14] trailer: process trailers from file and arguments

2014-02-14 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Christian Couder chrisc...@tuxfamily.org writes: For example some people might want: if_exists = overwrite if_missing = add while others might want: if_exists = overwrite if_missing = do_nothing and I don't see how we can say

Re: [PATCH v5 02/14] trailer: process trailers from file and arguments

2014-02-23 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Junio C Hamano gits...@pobox.com writes: Having said all that, it appears that nobody seems to be able to come up with a saner arrangement that would not paint us into a tough corner that we would not be able to later escape from without being backward

Re: [PATCH 1/6] Add docstrings for lookup_replace_object() and do_lookup_replace_object()

2014-02-24 Thread Christian Couder
On Fri, Feb 21, 2014 at 5:32 PM, Michael Haggerty mhag...@alum.mit.edu wrote: Signed-off-by: Michael Haggerty mhag...@alum.mit.edu --- cache.h | 16 1 file changed, 16 insertions(+) diff --git a/cache.h b/cache.h index dc040fb..0ecd1c8 100644 --- a/cache.h +++ b/cache.h

Re: An idea for git bisect and a GSoC enquiry

2014-02-27 Thread Christian Couder
in contacting the prospective mentor, Christian Couder, to go over these. What's the proper way to ask for an introduction? As Michael said, you can just CC me or send me a private email. But I think the most important thing right now is first to gather as much information as you can from

[PATCH v6 00/11] Add interpret-trailers builtin

2014-03-04 Thread Christian Couder
to setup env variables for commands has been removed * all the memory leaks should have been fixed Christian Couder (11): Add data structures and basic functions for commit trailers trailer: process trailers from stdin and arguments trailer: read and process config information trailer

[PATCH v6 07/11] trailer: add interpret-trailers command

2014-03-04 Thread Christian Couder
This patch adds the git interpret-trailers command. This command uses the previously added process_trailers() function in trailer.c. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- .gitignore | 1 + Makefile | 1 + builtin.h

[PATCH v6 03/11] trailer: read and process config information

2014-03-04 Thread Christian Couder
This patch implements reading the configuration to get trailer information, and then processing it and storing it in a doubly linked list. The config information is stored in the list whose first item is pointed to by: static struct trailer_item *first_conf_item; Signed-off-by: Christian Couder

[PATCH v6 11/11] Documentation: add documentation for 'git interpret-trailers'

2014-03-04 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Documentation/git-interpret-trailers.txt | 123 +++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/git-interpret-trailers.txt diff --git a/Documentation/git-interpret-trailers.txt b

[PATCH v6 04/11] trailer: process command line trailer arguments

2014-03-04 Thread Christian Couder
Parse the trailer command line arguments and put the result into an arg_tok doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 93 +++ 1 file changed, 93 insertions(+) diff --git a/trailer.c b

[PATCH v6 06/11] trailer: put all the processing together and print

2014-03-04 Thread Christian Couder
This patch adds the process_trailers() function that calls all the previously added processing functions and then prints the results on the standard output. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 48 1 file changed

[PATCH v6 10/11] trailer: add tests for commands in config file

2014-03-04 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- t/t7513-interpret-trailers.sh | 47 +++ 1 file changed, 47 insertions(+) diff --git a/t/t7513-interpret-trailers.sh b/t/t7513-interpret-trailers.sh index 3223b12..0badd0e 100755 --- a/t/t7513

[PATCH v6 01/11] Add data structures and basic functions for commit trailers

2014-03-04 Thread Christian Couder
We will use a doubly linked list to store all information about trailers and their configuration. This way we can easily remove or add trailers to or from trailer lists while traversing the lists in either direction. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Makefile | 1

[PATCH v6 09/11] trailer: execute command from 'trailer.name.command'

2014-03-04 Thread Christian Couder
Let the user specify a command that will give on its standard output the value to use for the specified trailer. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 64 +++ 1 file changed, 64 insertions(+) diff

[PATCH v6 02/11] trailer: process trailers from stdin and arguments

2014-03-04 Thread Christian Couder
from its list and inserted into the in_tok list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 197 ++ 1 file changed, 197 insertions(+) diff --git a/trailer.c b/trailer.c index db93a63..a0124f2 100644

[PATCH v6 05/11] trailer: parse trailers from stdin

2014-03-04 Thread Christian Couder
Read trailers from stdin, parse them and put the result into a doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 76 +++ 1 file changed, 76 insertions(+) diff --git a/trailer.c b/trailer.c

Re: [PATCH] disable grafts during fetch/push/bundle

2014-03-06 Thread Christian Couder
On Thu, Mar 6, 2014 at 9:42 AM, Michael Haggerty mhag...@alum.mit.edu wrote: On 03/05/2014 08:18 PM, Junio C Hamano wrote: Jeff King p...@peff.net writes: On Wed, Mar 05, 2014 at 10:49:24AM -0800, Junio C Hamano wrote: ... the plan, at least in my mind, has always been exactly that: grafts

Re: [PATCH v6 02/11] trailer: process trailers from stdin and arguments

2014-03-06 Thread Christian Couder
On Wed, Mar 5, 2014 at 11:52 PM, Junio C Hamano gits...@pobox.com wrote: This round is marked as the sixth, but I still see quite a many style issues, which I expect not to see from long timers without being told. Somewhat disappointing... Yeah, I don't know why, but these days I find it

[PATCH v7 03/11] trailer: read and process config information

2014-03-06 Thread Christian Couder
This patch implements reading the configuration to get trailer information, and then processing it and storing it in a doubly linked list. The config information is stored in the list whose first item is pointed to by: static struct trailer_item *first_conf_item; Signed-off-by: Christian Couder

[PATCH v7 00/11] Add interpret-trailers builtin

2014-03-06 Thread Christian Couder
at the beginning of trailer.c Christian Couder (11): Add data structures and basic functions for commit trailers trailer: process trailers from stdin and arguments trailer: read and process config information trailer: process command line trailer arguments trailer: parse trailers from

[PATCH v7 08/11] trailer: add tests for git interpret-trailers

2014-03-06 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- t/t7513-interpret-trailers.sh | 214 ++ 1 file changed, 214 insertions(+) create mode 100755 t/t7513-interpret-trailers.sh diff --git a/t/t7513-interpret-trailers.sh b/t/t7513-interpret

[PATCH v7 05/11] trailer: parse trailers from stdin

2014-03-06 Thread Christian Couder
Read trailers from stdin, parse them and put the result into a doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 76 +++ 1 file changed, 76 insertions(+) diff --git a/trailer.c b/trailer.c

[PATCH v7 10/11] trailer: add tests for commands in config file

2014-03-06 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- t/t7513-interpret-trailers.sh | 47 +++ 1 file changed, 47 insertions(+) diff --git a/t/t7513-interpret-trailers.sh b/t/t7513-interpret-trailers.sh index 1c5ed81..07e1b60 100755 --- a/t/t7513

[PATCH v7 06/11] trailer: put all the processing together and print

2014-03-06 Thread Christian Couder
This patch adds the process_trailers() function that calls all the previously added processing functions and then prints the results on the standard output. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 49 + trailer.h

[PATCH v7 09/11] trailer: execute command from 'trailer.name.command'

2014-03-06 Thread Christian Couder
Let the user specify a command that will give on its standard output the value to use for the specified trailer. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 63 +++ 1 file changed, 63 insertions(+) diff

[PATCH v7 04/11] trailer: process command line trailer arguments

2014-03-06 Thread Christian Couder
Parse the trailer command line arguments and put the result into an arg_tok doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 97 +++ 1 file changed, 97 insertions(+) diff --git a/trailer.c b

[PATCH v7 11/11] Documentation: add documentation for 'git interpret-trailers'

2014-03-06 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Documentation/git-interpret-trailers.txt | 123 +++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/git-interpret-trailers.txt diff --git a/Documentation/git-interpret-trailers.txt b

[PATCH v7 02/11] trailer: process trailers from stdin and arguments

2014-03-06 Thread Christian Couder
from its list and inserted into the in_tok list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 198 ++ 1 file changed, 198 insertions(+) diff --git a/trailer.c b/trailer.c index db93a63..52108c2 100644

[PATCH v7 01/11] Add data structures and basic functions for commit trailers

2014-03-06 Thread Christian Couder
We will use a doubly linked list to store all information about trailers and their configuration. This way we can easily remove or add trailers to or from trailer lists while traversing the lists in either direction. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Makefile | 1

[PATCH v7 07/11] trailer: add interpret-trailers command

2014-03-06 Thread Christian Couder
This patch adds the git interpret-trailers command. This command uses the previously added process_trailers() function in trailer.c. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- .gitignore | 1 + Makefile | 1 + builtin.h

Re: [PATCH] disable grafts during fetch/push/bundle

2014-03-06 Thread Christian Couder
On Fri, Mar 7, 2014 at 12:39 AM, Junio C Hamano gits...@pobox.com wrote: Michael Haggerty mhag...@alum.mit.edu writes: I didn't mean to insult all Windows users in general. I was only referring to the fact that since the default Windows command line is not a POSIX shell, even an experienced

Re: [PATCH v6 02/11] trailer: process trailers from stdin and arguments

2014-03-07 Thread Christian Couder
On Fri, Mar 7, 2014 at 9:08 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Fri, Mar 07, 2014 at 07:19:15AM +0100, Christian Couder wrote: Yeah, I don't know why, but these days I find it very hard to review style issues in my own code without being distracted. And by the way

Re: What's cooking in git.git (Mar 2014, #06; Tue, 25)

2014-03-26 Thread Christian Couder
HI, On Tue, Mar 25, 2014 at 9:18 PM, Junio C Hamano gits...@pobox.com wrote: * cc/interpret-trailers (2014-03-07) 11 commits - Documentation: add documentation for 'git interpret-trailers' - trailer: add tests for commands in config file - trailer: execute command from

[PATCH v8 03/12] Move lower case functions into wrapper.c

2014-03-26 Thread Christian Couder
-by: Christian Couder chrisc...@tuxfamily.org --- config.c | 6 -- daemon.c | 8 git-compat-util.h | 4 wrapper.c | 14 ++ 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/config.c b/config.c index 314d8ee..dde128e 100644

[PATCH v8 06/12] trailer: parse trailers from stdin

2014-03-26 Thread Christian Couder
Read trailers from stdin, parse them and put the result into a doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 76 +++ 1 file changed, 76 insertions(+) diff --git a/trailer.c b/trailer.c

[PATCH v8 00/12] Add interpret-trailers builtin

2014-03-26 Thread Christian Couder
related functions. I am not very happy with these changes. Christian Couder (12): Add data structures and basic functions for commit trailers trailer: process trailers from stdin and arguments Move lower case functions into wrapper.c trailer: read and process config information trailer

[PATCH v8 04/12] trailer: read and process config information

2014-03-26 Thread Christian Couder
Read the configuration to get trailer information, and then process it and storing it in a doubly linked list. The config information is stored in the list whose first item is pointed to by: static struct trailer_item *first_conf_item; Signed-off-by: Christian Couder chrisc...@tuxfamily.org

[PATCH v8 07/12] trailer: put all the processing together and print

2014-03-26 Thread Christian Couder
This patch adds the process_trailers() function that calls all the previously added processing functions and then prints the results on the standard output. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 49 + trailer.h

[PATCH v8 10/12] trailer: execute command from 'trailer.name.command'

2014-03-26 Thread Christian Couder
Let the user specify a command that will give on its standard output the value to use for the specified trailer. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 63 +++ 1 file changed, 63 insertions(+) diff

[PATCH v8 02/12] trailer: process trailers from stdin and arguments

2014-03-26 Thread Christian Couder
from its list and inserted into the in_tok list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 198 ++ 1 file changed, 198 insertions(+) diff --git a/trailer.c b/trailer.c index db93a63..52108c2 100644

[PATCH v8 12/12] Documentation: add documentation for 'git interpret-trailers'

2014-03-26 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Documentation/git-interpret-trailers.txt | 123 +++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/git-interpret-trailers.txt diff --git a/Documentation/git-interpret-trailers.txt b

[PATCH v8 11/12] trailer: add tests for commands in config file

2014-03-26 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- t/t7513-interpret-trailers.sh | 71 +++ 1 file changed, 71 insertions(+) diff --git a/t/t7513-interpret-trailers.sh b/t/t7513-interpret-trailers.sh index 417a4f3..0a1f3b6 100755 --- a/t/t7513

[PATCH v8 05/12] trailer: process command line trailer arguments

2014-03-26 Thread Christian Couder
Parse the trailer command line arguments and put the result into an arg_tok doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 103 ++ 1 file changed, 103 insertions(+) diff --git a/trailer.c b

[PATCH v8 01/12] Add data structures and basic functions for commit trailers

2014-03-26 Thread Christian Couder
We will use a doubly linked list to store all information about trailers and their configuration. This way we can easily remove or add trailers to or from trailer lists while traversing the lists in either direction. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Makefile | 1

[PATCH v8 08/12] trailer: add interpret-trailers command

2014-03-26 Thread Christian Couder
This patch adds the git interpret-trailers command. This command uses the previously added process_trailers() function in trailer.c. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- .gitignore | 1 + Makefile | 1 + builtin.h

[PATCH v8 09/12] trailer: add tests for git interpret-trailers

2014-03-26 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- t/t7513-interpret-trailers.sh | 336 ++ 1 file changed, 336 insertions(+) create mode 100755 t/t7513-interpret-trailers.sh diff --git a/t/t7513-interpret-trailers.sh b/t/t7513-interpret

Re: [PATCH v8 03/12] Move lower case functions into wrapper.c

2014-03-27 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Christian Couder chrisc...@tuxfamily.org writes: diff --git a/wrapper.c b/wrapper.c index 0cc5636..c46026a 100644 --- a/wrapper.c +++ b/wrapper.c @@ -455,3 +455,17 @@ struct passwd *xgetpwuid_self(void) errno ? strerror(errno

Re: [PATCH v8 00/12] Add interpret-trailers builtin

2014-03-27 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Christian Couder chrisc...@tuxfamily.org writes: Until now git commit has only supported the well known Signed-off-by: trailer, that is used by many projects like the Linux kernel and Git. It is better to implement features for these trailers first

Re: [PATCH v8 01/12] Add data structures and basic functions for commit trailers

2014-03-27 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Subject: Re: [PATCH v8 01/12] Add data structures and basic functions for commit trailers Date: Wed, 26 Mar 2014 16:06:35 -0700 Christian Couder chrisc...@tuxfamily.org writes: Subject: Re: [PATCH v8 01/12] Add data structures and basic functions

Re: [PATCH v8 03/12] Move lower case functions into wrapper.c

2014-03-28 Thread Christian Couder
From: Jeff King p...@peff.net Subject: Re: [PATCH v8 03/12] Move lower case functions into wrapper.c Date: Thu, 27 Mar 2014 18:34:06 -0400 On Thu, Mar 27, 2014 at 03:16:48PM -0700, Junio C Hamano wrote: I wasn't looking at the caller (and I haven't). I agree that, if you have to compare

[PATCH v9 03/11] trailer: read and process config information

2014-04-01 Thread Christian Couder
Read the configuration to get trailer information, and then process it and storing it in a doubly linked list. The config information is stored in the list whose first item is pointed to by: static struct trailer_item *first_conf_item; Signed-off-by: Christian Couder chrisc...@tuxfamily.org

[PATCH v9 08/11] trailer: add tests for git interpret-trailers

2014-04-01 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- t/t7513-interpret-trailers.sh | 336 ++ 1 file changed, 336 insertions(+) create mode 100755 t/t7513-interpret-trailers.sh diff --git a/t/t7513-interpret-trailers.sh b/t/t7513-interpret

[PATCH v9 02/11] trailer: process trailers from stdin and arguments

2014-04-01 Thread Christian Couder
from its list and inserted into the in_tok list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 198 ++ 1 file changed, 198 insertions(+) diff --git a/trailer.c b/trailer.c index db93a63..52108c2 100644

[PATCH v9 10/11] trailer: add tests for commands in config file

2014-04-01 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- t/t7513-interpret-trailers.sh | 71 +++ 1 file changed, 71 insertions(+) diff --git a/t/t7513-interpret-trailers.sh b/t/t7513-interpret-trailers.sh index 417a4f3..0a1f3b6 100755 --- a/t/t7513

[PATCH v9 11/11] Documentation: add documentation for 'git interpret-trailers'

2014-04-01 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Documentation/git-interpret-trailers.txt | 123 +++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/git-interpret-trailers.txt diff --git a/Documentation/git-interpret-trailers.txt b

[PATCH v9 07/11] trailer: add interpret-trailers command

2014-04-01 Thread Christian Couder
This patch adds the git interpret-trailers command. This command uses the previously added process_trailers() function in trailer.c. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- .gitignore | 1 + Makefile | 1 + builtin.h

[PATCH v9 00/11] Add interpret-trailers builtin

2014-04-01 Thread Christian Couder
a fixed set This means code changes only in patch 3/11 and commit message changes only in patch 1/11. Christian Couder (11): trailer: add data structures and basic functions trailer: process trailers from stdin and arguments trailer: read and process config information trailer: process

[PATCH v9 06/11] trailer: put all the processing together and print

2014-04-01 Thread Christian Couder
This patch adds the process_trailers() function that calls all the previously added processing functions and then prints the results on the standard output. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 49 + trailer.h

[PATCH v9 01/11] trailer: add data structures and basic functions

2014-04-01 Thread Christian Couder
We will use a doubly linked list to store all information about trailers and their configuration. This way we can easily remove or add trailers to or from trailer lists while traversing the lists in either direction. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- Makefile | 1

[PATCH v9 04/11] trailer: process command line trailer arguments

2014-04-01 Thread Christian Couder
Parse the trailer command line arguments and put the result into an arg_tok doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 103 ++ 1 file changed, 103 insertions(+) diff --git a/trailer.c b

[PATCH v9 05/11] trailer: parse trailers from stdin

2014-04-01 Thread Christian Couder
Read trailers from stdin, parse them and put the result into a doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- trailer.c | 76 +++ 1 file changed, 76 insertions(+) diff --git a/trailer.c b/trailer.c

Re: [PATCH v9 11/11] Documentation: add documentation for 'git interpret-trailers'

2014-04-02 Thread Christian Couder
Hi, On Wed, Apr 2, 2014 at 2:39 AM, Jonathan Nieder jrnie...@gmail.com wrote: (culling cc list) Hi, Christian Couder wrote: [Subject: Documentation: add documentation for 'git interpret-trailers'] Signed-off-by: Christian Couder chrisc...@tuxfamily.org This should be squashed

Re: [PATCH v9 08/11] trailer: add tests for git interpret-trailers

2014-04-02 Thread Christian Couder
On Wed, Apr 2, 2014 at 12:54 AM, Junio C Hamano gits...@pobox.com wrote: +test_expect_success '--trim-empty without config' ' + cat expected -\EOF + ack: Peff + Acked-by: Johan + EOF + git interpret-trailers --trim-empty ack = Peff Reviewed-by

Re: [PATCH v9 11/11] Documentation: add documentation for 'git interpret-trailers'

2014-04-07 Thread Christian Couder
On Sat, Apr 5, 2014 at 12:42 AM, Junio C Hamano gits...@pobox.com wrote: Junio C Hamano gits...@pobox.com writes: Christian Couder christian.cou...@gmail.com writes: The following features are planned but not yet implemented: - add more tests related to commands - add

[PATCH v10 00/12] Add interpret-trailers builtin

2014-04-07 Thread Christian Couder
* added patch 12/12 which add one blank line before the trailers if there is not one already This means code changes only in patches 4/12, 9/12, 10/12 and 12/12. Christian Couder (12): trailer: add data structures and basic functions trailer: process trailers from stdin and arguments trailer

[PATCH v10 06/12] trailer: put all the processing together and print

2014-04-07 Thread Christian Couder
This patch adds the process_trailers() function that calls all the previously added processing functions and then prints the results on the standard output. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- trailer.c | 49

[PATCH v10 09/12] trailer: execute command from 'trailer.name.command'

2014-04-07 Thread Christian Couder
Let the user specify a command that will give on its standard output the value to use for the specified trailer. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- trailer.c | 64

[PATCH v10 12/12] trailer: add blank line before the trailers if needed

2014-04-07 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org --- t/t7513-interpret-trailers.sh | 12 +++- trailer.c | 26 ++ 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/t/t7513-interpret-trailers.sh b/t/t7513-interpret-trailers.sh

[PATCH v10 05/12] trailer: parse trailers from stdin

2014-04-07 Thread Christian Couder
Read trailers from stdin, parse them and put the result into a doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- trailer.c | 76 +++ 1 file changed, 76

[PATCH v10 08/12] trailer: add tests for git interpret-trailers

2014-04-07 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- t/t7513-interpret-trailers.sh | 351 ++ 1 file changed, 351 insertions(+) create mode 100755 t/t7513-interpret-trailers.sh diff --git a/t/t7513

[PATCH v10 04/12] trailer: process command line trailer arguments

2014-04-07 Thread Christian Couder
Parse the trailer command line arguments and put the result into an arg_tok doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- trailer.c | 117 ++ 1 file

[PATCH v10 10/12] trailer: add tests for commands in config file

2014-04-07 Thread Christian Couder
And add a few other tests for some special cases. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- t/t7513-interpret-trailers.sh | 116 ++ 1 file changed, 116 insertions(+) diff --git a/t/t7513

[PATCH v10 01/12] trailer: add data structures and basic functions

2014-04-07 Thread Christian Couder
We will use a doubly linked list to store all information about trailers and their configuration. This way we can easily remove or add trailers to or from trailer lists while traversing the lists in either direction. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C

[PATCH v10 02/12] trailer: process trailers from stdin and arguments

2014-04-07 Thread Christian Couder
from its list and inserted into the in_tok list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- trailer.c | 198 ++ 1 file changed, 198 insertions(+) diff --git a/trailer.c b

Re: [PATCH v9 11/11] Documentation: add documentation for 'git interpret-trailers'

2014-04-07 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com Christian Couder christian.cou...@gmail.com writes: First accepting both ':' and '=' means one can see the git interpret-trailers as acting on trailers only. Not just on trailers from the intput message and option parameters from the command line

Re: [PATCH v10 11/12] Documentation: add documentation for 'git interpret-trailers'

2014-04-08 Thread Christian Couder
On Tue, Apr 8, 2014 at 9:30 AM, Michael Haggerty mhag...@alum.mit.edu wrote: +This command is a filter. It reads the standard input for a commit +message and applies the `token` arguments, if any, to this +message. The resulting message is emited on the standard output. s/emited/emitted/

Re: [PATCH v10 12/12] trailer: add blank line before the trailers if needed

2014-04-08 Thread Christian Couder
On Mon, Apr 7, 2014 at 11:38 PM, Junio C Hamano gits...@pobox.com wrote: Hmph, this is more fixing a mistake made earlier in the series at the end than adding a new feature or something. Can you start from a version that does not have the mistake from the beginning? Ok, I will squash this

Re: On interpret-trailers standalone tool

2014-04-12 Thread Christian Couder
From: Junio C Hamano gits...@pobox.com So far I've mostly been ignoring how the command line would look like, I don't really feel this way ;-) because the intermediate goal to my mind was to have it as a hook that are added by people better versed with Git than an average end-user, and if

Re: On interpret-trailers standalone tool

2014-04-16 Thread Christian Couder
On Mon, Apr 14, 2014 at 11:41 PM, Junio C Hamano gits...@pobox.com wrote: Christian Couder chrisc...@tuxfamily.org writes: Yeah, except that we could add for example a '-o' option that would take a directory as argument and that would mean that the command should operate on all the files

[PATCH v11 02/11] trailer: process trailers from input message and arguments

2014-04-25 Thread Christian Couder
should be applied, it is removed from its list and inserted into the in_tok list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- trailer.c | 198 ++ 1 file changed, 198 insertions

[PATCH v11 04/11] trailer: process command line trailer arguments

2014-04-25 Thread Christian Couder
Parse the trailer command line arguments and put the result into an arg_tok doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- trailer.c | 118 ++ 1 file

[PATCH v11 03/11] trailer: read and process config information

2014-04-25 Thread Christian Couder
Read the configuration to get trailer information, and then process it and store it in a doubly linked list. The config information is stored in the list whose first item is pointed to by: static struct trailer_item *first_conf_item; Signed-off-by: Christian Couder chrisc...@tuxfamily.org

[PATCH v11 05/11] trailer: parse trailers from file or stdin

2014-04-25 Thread Christian Couder
Read trailers from a file or from stdin, parse the trailers and then put the result into a doubly linked list. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- trailer.c | 116

[PATCH v11 11/11] Documentation: add documentation for 'git interpret-trailers'

2014-04-25 Thread Christian Couder
While at it add git-interpret-trailers to command-list.txt. Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- Documentation/git-interpret-trailers.txt | 143 +++ command-list.txt | 1

[PATCH v11 00/11] Add interpret-trailers builtin

2014-04-25 Thread Christian Couder
because there are still at least a commit message change in 2/11 and s/strcmp/strcasecmp/ in 3/11. Christian Couder (11): trailer: add data structures and basic functions trailer: process trailers from input message and arguments trailer: read and process config information trailer: process

[PATCH v11 08/11] trailer: add tests for git interpret-trailers

2014-04-25 Thread Christian Couder
Signed-off-by: Christian Couder chrisc...@tuxfamily.org Signed-off-by: Junio C Hamano gits...@pobox.com --- t/t7513-interpret-trailers.sh | 418 ++ 1 file changed, 418 insertions(+) create mode 100755 t/t7513-interpret-trailers.sh diff --git a/t/t7513

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