Re: 2.11.0-rc1 will not be tagged for a few days

2016-11-08 Thread Junio C Hamano
Jeff King writes: > I'm collecting v2.11-rc1 topics in the "refs/heads/for-junio/" section > of git://github.com/peff/git.git. > > I've also got proposed merges for "master" there, though note that none > of the topics has actually cooked at all in next (the fixes are trivial > enough that it may

Re: [PATCH v4 1/2] lib-proto-disable: variable name fix

2016-11-08 Thread Junio C Hamano
Jacob Keller writes: > On Mon, Nov 7, 2016 at 12:48 PM, Jeff King wrote: >> It's possible that I'm overly picky about my commit messages, but that >> does not stop me from trying to train an army of picky-commit-message >> clones. :) >> >> -Peff > > You're not the only one ;) Somebody seems to

Re: git submodule add broken (2.11.0-rc1): Cannot open git-sh-i18n

2016-11-08 Thread Junio C Hamano
Stefan Beller writes: > On Mon, Nov 7, 2016 at 10:30 AM, Anthony Sottile wrote: >> This has worked great up until now (and is very convenient for trying things >> out without blowing away the system installation). What changed? >> > > (Just guessing myself:) > > $ git log --grep git-sh-i18n v2.

Re: [PATCH v5 01/16] Git.pm: add subroutines for commenting lines

2016-11-08 Thread Junio C Hamano
Vasco Almeida writes: > Add subroutines prefix_lines and comment_lines. > > Signed-off-by: Vasco Almeida > --- > perl/Git.pm | 23 +++ > 1 file changed, 23 insertions(+) > > diff --git a/perl/Git.pm b/perl/Git.pm > index b2732822a..17be59fb7 100644 > --- a/perl/Git.pm > +++

Re: [PATCH 5/6] config docs: Provide for config to specify tags not to abbreviate

2016-11-08 Thread Junio C Hamano
Ian Jackson writes: >> I think the two things I found weird were: >> >> - it's in the "log" section, which makes me think it's an option for >> git-log. But it's not. I'm not sure what the _right_ section is, but >> hopefully it would make it clear that this is command-agnostic. >> >>

[PATCH] sequencer: silence -Wtautological-constant-out-of-range-compare

2016-11-08 Thread Jeff King
When clang compiles sequencer.c, it complains: sequencer.c:632:14: warning: comparison of constant 2 with expression of type 'const enum todo_command' is always true [-Wtautological-constant-out-of-range-compare] if (command < ARRAY_SIZE(todo_command_strings)) This is because

Re: Bug: git config does not respect read-only .gitconfig file

2016-11-08 Thread Jeff King
On Tue, Nov 08, 2016 at 05:22:52PM -0800, Junio C Hamano wrote: > Jeff King writes: > > > Probably converting "rename(from, to)" to first check "access(to, > > W_OK)". That's racy, but it's the best we could do. > > Hmph, if these (possibly problematic) callers are all following the > usual "lo

Re: [PATCH 5/6] config docs: Provide for config to specify tags not to abbreviate

2016-11-08 Thread Ian Jackson
Jeff King writes ("Re: [PATCH 5/6] config docs: Provide for config to specify tags not to abbreviate"): > Yeah, I think git's config system was always designed to carry options > for porcelains outside of git-core itself. So your new option fits into > that. Good, thanks. > I think the two thing

Re: Bug: git config does not respect read-only .gitconfig file

2016-11-08 Thread Junio C Hamano
Jeff King writes: > Probably converting "rename(from, to)" to first check "access(to, > W_OK)". That's racy, but it's the best we could do. Hmph, if these (possibly problematic) callers are all following the usual "lock, write to temp, rename" pattern, perhaps the lock_file() function can have a

Re: [PATCH v7 16/17] branch: use ref-filter printing APIs

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:12 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Port branch.c to use ref-filter APIs for printing. This clears out > most of the code used in branch.c for printing and replaces them with > calls made to the ref-filter library. Nice. This looks correct based on che

Re: [PATCH v7 00/17] port branch.c to use ref-filter's printing options

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:11 PM, Karthik Nayak wrote: > This is part of unification of the commands 'git tag -l, git branch -l > and git for-each-ref'. This ports over branch.c to use ref-filter's > printing options. > > Initially posted here: $(gmane/279226). It was decided that this series > wou

Re: [PATCH v7 15/17] branch, tag: use porcelain output

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:12 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Call ref-filter's setup_ref_filter_porcelain_msg() to enable > translated messages for the %(upstream:tack) atom. Although branch.c > doesn't currently use ref-filter's printing API's, this will ensure > that when it

Re: [PATCH v7 14/17] ref-filter: allow porcelain to translate messages in the output

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:12 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Introduce setup_ref_filter_porcelain_msg() so that the messages used in > the atom %(upstream:track) can be translated if needed. This is needed > as we port branch.c to use ref-filter's printing API's. > So any user

Re: [PATCH v7 13/17] ref-filter: add `:dir` and `:base` options for ref printing atoms

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:12 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Add the options `:dir` and `:base` to all ref printing ('%(refname)', > '%(symref)', '%(push)' and '%(upstream)') atoms. The `:dir` option gives > the directory (the part after $GIT_DIR/) of the ref without the > refn

Re: [PATCH v7 12/17] ref-filter: make remote_ref_atom_parser() use refname_atom_parser_internal()

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:12 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Use the recently introduced refname_atom_parser_internal() within > remote_ref_atom_parser(), this provides a common base for all the ref > printing atoms, allowing %(upstream) and %(push) to also use the > ':strip' o

Re: [PATCH v7 11/17] ref-filter: introduce symref_atom_parser() and refname_atom_parser()

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:12 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Using refname_atom_parser_internal(), introduce symref_atom_parser() and > refname_atom_parser() which will parse the atoms %(symref) and > %(refname) respectively. Store the parsed information into the > 'used_atom'

Re: [PATCH v7 09/17] ref-filter: make "%(symref)" atom work with the ':short' modifier

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:12 PM, Karthik Nayak wrote: > From: Karthik Nayak > > The "%(symref)" atom doesn't work when used with the ':short' modifier > because we strictly match only 'symref' for setting the 'need_symref' > indicator. Fix this by using comparing with valid_atom rather than used_

Re: [PATCH v7 08/17] ref-filter: add support for %(upstream:track,nobracket)

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:12 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Add support for %(upstream:track,nobracket) which will print the > tracking information without the brackets (i.e. "ahead N, behind M"). > This is needed when we port branch.c to use ref-filter's printing APIs. > Mak

Re: [PATCH v7 07/17] ref-filter: make %(upstream:track) prints "[gone]" for invalid upstreams

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:12 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Borrowing from branch.c's implementation print "[gone]" whenever an > unknown upstream ref is encountered instead of just ignoring it. > This makes sense. > This makes sure that when branch.c is ported over to using

Re: [PATCH v7 06/17] ref-filter: introduce format_ref_array_item()

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:12 PM, Karthik Nayak wrote: > From: Karthik Nayak > > To allow column display, we will need to first render the output in a > string list to allow print_columns() to compute the proper size of > each column before starting the actual output. Introduce the function > form

Re: [PATCH v7 05/17] ref-filter: move get_head_description() from branch.c

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:11 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Move the implementation of get_head_description() from branch.c to > ref-filter. This gives a description of the HEAD ref if called. This > is used as the refname for the HEAD ref whenever the > FILTER_REFS_DETACHED_

Re: [PATCH v7 04/17] ref-filter: modify "%(objectname:short)" to take length

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:11 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Add support for %(objectname:short=) which would print the > abbreviated unique objectname of given length. When no length is > specified, the length is 'DEFAULT_ABBREV'. The minimum length is > 'MINIMUM_ABBREV'. The

Re: [PATCH v7 03/17] ref-filter: implement %(if:equals=) and %(if:notequals=)

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:11 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Implement %(if:equals=) wherein the if condition is only > satisfied if the value obtained between the %(if:...) and %(then) atom > is the same as the given ''. > > Similarly, implement (if:notequals=) wherein the if

Re: [PATCH v7 02/17] ref-filter: include reference to 'used_atom' within 'atom_value'

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:11 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Ensure that each 'atom_value' has a reference to its corresponding > 'used_atom'. This let's us use values within 'used_atom' in the > 'handler' function. > > Hence we can get the %(align) atom's parameters directly f

Re: [PATCH v7 01/17] ref-filter: implement %(if), %(then), and %(else) atoms

2016-11-08 Thread Jacob Keller
On Tue, Nov 8, 2016 at 12:11 PM, Karthik Nayak wrote: > From: Karthik Nayak > > Implement %(if), %(then) and %(else) atoms. Used as > %(if)...%(then)...%(end) or %(if)...%(then)...%(else)...%(end). If the > format string between %(if) and %(then) expands to an empty string, or > to only whitespac

Re: [PATCH 4/5] attr: do not respect symlinks for in-tree .gitattributes

2016-11-08 Thread Jeff King
On Tue, Nov 08, 2016 at 08:38:55AM +0700, Duy Nguyen wrote: > > Another approach is to have a config option to disallow symlinks to > > destinations outside of the repository tree (I'm not sure if it should > > be on or off by default, though). > > Let's err on the safe side and disable symlinks

Re: [PATCH v5 2/2] transport: add protocol policy config option

2016-11-08 Thread Brandon Williams
On 11/08, Jeff King wrote: > On Mon, Nov 07, 2016 at 01:51:02PM -0800, Brandon Williams wrote: > > > Previously the `GIT_ALLOW_PROTOCOL` environment variable was used to > > specify a whitelist of protocols to be used in clone/fetch/push > > commands. This patch introduces new configuration optio

Re: [PATCH v5 2/2] transport: add protocol policy config option

2016-11-08 Thread Jeff King
On Mon, Nov 07, 2016 at 01:51:02PM -0800, Brandon Williams wrote: > Previously the `GIT_ALLOW_PROTOCOL` environment variable was used to > specify a whitelist of protocols to be used in clone/fetch/push > commands. This patch introduces new configuration options for more > fine-grained control fo

Re: [PATCH 5/6] config docs: Provide for config to specify tags not to abbreviate

2016-11-08 Thread Jeff King
On Tue, Nov 08, 2016 at 10:51:33AM +, Ian Jackson wrote: > Yes, I agree that it does seem weird. But the alternatives seem > worse. I think it's probably best if options like this (currently > only honoured by out-of-core tools but of general usefulness) are > collected together here. > > T

Re: 2.11.0-rc1 will not be tagged for a few days

2016-11-08 Thread Jeff King
On Tue, Nov 08, 2016 at 07:25:26AM +0100, Johannes Sixt wrote: > Am 08.11.2016 um 01:40 schrieb Jeff King: > > In addition to J6t's fix in t0021, ... > > Just to get things straight: Of my two patches, this one ("uniq -c > variations") > > https://public-inbox.org/git/c842e0a7-b032-e0c4-0995-f11

Re: [PATCH 0/3] gitk: memory consumption improvements

2016-11-08 Thread Junio C Hamano
Markus Hitter writes: > List, Paul, > > after searching for a while on why Gitk sometimes consumes > exorbitant amounts of memory I found a pair of minor issues and > also a big one: the text widget comes with an unlimited undo > manager, which is turned on be default. Considering that each line

[PATCH v7 14/17] ref-filter: allow porcelain to translate messages in the output

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Introduce setup_ref_filter_porcelain_msg() so that the messages used in the atom %(upstream:track) can be translated if needed. This is needed as we port branch.c to use ref-filter's printing API's. Written-by: Matthieu Moy Mentored-by: Christian Couder Mentored-by: Matthie

[PATCH v7 10/17] ref-filter: introduce refname_atom_parser_internal()

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Since there are multiple atoms which print refs ('%(refname)', '%(symref)', '%(push)', '%upstream'), it makes sense to have a common ground for parsing them. This would allow us to share implementations of the atom modifiers between these atoms. Introduce refname_atom_parser_

[PATCH v7 16/17] branch: use ref-filter printing APIs

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Port branch.c to use ref-filter APIs for printing. This clears out most of the code used in branch.c for printing and replaces them with calls made to the ref-filter library. Introduce build_format() which gets the format required for printing of refs. Make amendments to prin

[PATCH v7 08/17] ref-filter: add support for %(upstream:track,nobracket)

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Add support for %(upstream:track,nobracket) which will print the tracking information without the brackets (i.e. "ahead N, behind M"). This is needed when we port branch.c to use ref-filter's printing APIs. Add test and documentation for the same. Mentored-by: Christian Coud

[PATCH v7 11/17] ref-filter: introduce symref_atom_parser() and refname_atom_parser()

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Using refname_atom_parser_internal(), introduce symref_atom_parser() and refname_atom_parser() which will parse the atoms %(symref) and %(refname) respectively. Store the parsed information into the 'used_atom' structure based on the modifiers used along with the atoms. Now t

[PATCH v7 13/17] ref-filter: add `:dir` and `:base` options for ref printing atoms

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Add the options `:dir` and `:base` to all ref printing ('%(refname)', '%(symref)', '%(push)' and '%(upstream)') atoms. The `:dir` option gives the directory (the part after $GIT_DIR/) of the ref without the refname. The `:base` option gives the base directory of the given ref

[PATCH v7 07/17] ref-filter: make %(upstream:track) prints "[gone]" for invalid upstreams

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Borrowing from branch.c's implementation print "[gone]" whenever an unknown upstream ref is encountered instead of just ignoring it. This makes sure that when branch.c is ported over to using ref-filter APIs for printing, this feature is not lost. Make changes to t/t6300-for

[PATCH v7 15/17] branch, tag: use porcelain output

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Call ref-filter's setup_ref_filter_porcelain_msg() to enable translated messages for the %(upstream:tack) atom. Although branch.c doesn't currently use ref-filter's printing API's, this will ensure that when it does in the future patches, we do not need to worry about translat

[PATCH v7 06/17] ref-filter: introduce format_ref_array_item()

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak To allow column display, we will need to first render the output in a string list to allow print_columns() to compute the proper size of each column before starting the actual output. Introduce the function format_ref_array_item() that does the formatting of a ref_array_item t

[PATCH v7 17/17] branch: implement '--format' option

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Implement the '--format' option provided by 'ref-filter'. This lets the user list branches as per desired format similar to the implementation in 'git for-each-ref'. Add tests and documentation for the same. Mentored-by: Christian Couder Mentored-by: Matthieu Moy Signed-of

[PATCH v7 09/17] ref-filter: make "%(symref)" atom work with the ':short' modifier

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak The "%(symref)" atom doesn't work when used with the ':short' modifier because we strictly match only 'symref' for setting the 'need_symref' indicator. Fix this by using comparing with valid_atom rather than used_atom. Add tests for %(symref) and %(symref:short) while we're h

[PATCH v7 12/17] ref-filter: make remote_ref_atom_parser() use refname_atom_parser_internal()

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Use the recently introduced refname_atom_parser_internal() within remote_ref_atom_parser(), this provides a common base for all the ref printing atoms, allowing %(upstream) and %(push) to also use the ':strip' option. The atoms '%(push)' and '%(upstream)' will retain the ':tr

[PATCH v7 02/17] ref-filter: include reference to 'used_atom' within 'atom_value'

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Ensure that each 'atom_value' has a reference to its corresponding 'used_atom'. This let's us use values within 'used_atom' in the 'handler' function. Hence we can get the %(align) atom's parameters directly from the 'used_atom' therefore removing the necessity of passing %(a

[PATCH v7 05/17] ref-filter: move get_head_description() from branch.c

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Move the implementation of get_head_description() from branch.c to ref-filter. This gives a description of the HEAD ref if called. This is used as the refname for the HEAD ref whenever the FILTER_REFS_DETACHED_HEAD option is used. Make it public because we need it to calculat

[PATCH v7 04/17] ref-filter: modify "%(objectname:short)" to take length

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Add support for %(objectname:short=) which would print the abbreviated unique objectname of given length. When no length is specified, the length is 'DEFAULT_ABBREV'. The minimum length is 'MINIMUM_ABBREV'. The length may be exceeded to ensure that the provided object name is

[PATCH v7 03/17] ref-filter: implement %(if:equals=) and %(if:notequals=)

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Implement %(if:equals=) wherein the if condition is only satisfied if the value obtained between the %(if:...) and %(then) atom is the same as the given ''. Similarly, implement (if:notequals=) wherein the if condition is only satisfied if the value obtained between the %(if:

[PATCH v7 00/17] port branch.c to use ref-filter's printing options

2016-11-08 Thread Karthik Nayak
This is part of unification of the commands 'git tag -l, git branch -l and git for-each-ref'. This ports over branch.c to use ref-filter's printing options. Initially posted here: $(gmane/279226). It was decided that this series would follow up after refactoring ref-filter parsing mechanism, which

[PATCH v7 01/17] ref-filter: implement %(if), %(then), and %(else) atoms

2016-11-08 Thread Karthik Nayak
From: Karthik Nayak Implement %(if), %(then) and %(else) atoms. Used as %(if)...%(then)...%(end) or %(if)...%(then)...%(else)...%(end). If the format string between %(if) and %(then) expands to an empty string, or to only whitespaces, then the whole %(if)...%(end) expands to the string following

Re: [PATCH] t6026-merge-attr: don't fail if sleep exits early

2016-11-08 Thread Jeff King
On Tue, Nov 08, 2016 at 06:03:04PM +0100, Andreas Schwab wrote: > Commit 5babb5bdb3 ("t6026-merge-attr: clean up background process at end > of test case") added a kill command to clean up after the test, but this > can fail if the sleep command exits before the cleanup is executed. > Ignore the e

Re: Bug: git config does not respect read-only .gitconfig file

2016-11-08 Thread Jeff King
On Tue, Nov 08, 2016 at 12:18:22PM -0500, Jonathan Word wrote: > The point of confusion to users ( / my team) is that `git config` > gives the appearance of editing / modifying the .gitconfig file > in-place (where file permissions would be respected) however the > actual implementation performs t

Re: [PATCH 07/18] link_alt_odb_entry: handle normalize_path errors

2016-11-08 Thread Bryan Turner
> >> Is there anything I can do to help? I'm happy to test out changes. > > The patch at the end of his mail obviously passes the newly-added tests > for me, but please confirm that it fixes your test suite. > > I gather your suite is about noticing behavior changes between different > versions. Fo

Re: Bug: git config does not respect read-only .gitconfig file

2016-11-08 Thread Jonathan Word
I proposed a variant that would be fully backwards-compatible (don't know who might rely on the functionality http://xkcd.com/1172/ ) however I'd be happy to see the change without additional config +1 ... that's a call for this list as maintainers. The root of the issue is that tempfile::rename_t

[PATCH] t6026-merge-attr: don't fail if sleep exits early

2016-11-08 Thread Andreas Schwab
Commit 5babb5bdb3 ("t6026-merge-attr: clean up background process at end of test case") added a kill command to clean up after the test, but this can fail if the sleep command exits before the cleanup is executed. Ignore the error from the kill command. Signed-off-by: Andreas Schwab --- The failu

Re: Bug: git config does not respect read-only .gitconfig file

2016-11-08 Thread Markus Hitter
Am 08.11.2016 um 16:22 schrieb Jonathan Word: > Proposal: > > Part 1) Add a .gitconfig variable to respect a read-only gitconfig > file and optional "--force" override option for the `git config` > command > > Such a gitconfig variable could be defined as: > config.respectFileMode: [ "never", "al

Bug: git config does not respect read-only .gitconfig file

2016-11-08 Thread Jonathan Word
All, I recently discovered that `git config` does not respect read-only files. This caused unexpected difficulty in managing the global .gitconfig for a system account shared by a large team. A team member was able to execute a `git config --global` command without any notice or warning that the

Git packages for obsolete OS X'en

2016-11-08 Thread Heikki Lindholm
Hello list, I packaged git for some obsolete platforms for my own use. In hopes that the work might prove useful to someone else, too, the packages can be found on sourceforge. OS X 10.5 / PowerPC https://sourceforge.net/projects/osxpowerpcpackages/files/Git/ OS X 10.6 https://sourceforge.ne

Re: [PATCH 0/6] Provide for config to specify tags not to abbreviate

2016-11-08 Thread Ian Jackson
Markus Hitter writes ("Re: [PATCH 0/6] Provide for config to specify tags not to abbreviate"): > TBH, I see a violation of tool independence with the choice of > preference storage. Abbreviation of tags isn't a property of the > repository, but a pure visual thing (screen real estate, whatever), >

[PATCH v5 05/16] i18n: clean.c: match string with git-add--interactive.perl

2016-11-08 Thread Vasco Almeida
Change strings for help to match the ones in git-add--interactive.perl. The strings now represent one entry to translate each rather then two entries each different only by an ending newline character. Signed-off-by: Vasco Almeida --- builtin/clean.c | 10 +- 1 file changed, 5 insertions

[PATCH v5 11/16] i18n: add--interactive: mark status words for translation

2016-11-08 Thread Vasco Almeida
Mark words 'nothing', 'unchanged' and 'binary' used to display what has been staged or not, in "git add -i" status command. Alternatively one could mark N__('nothing') no-op in order to xgettext(1) extract the string and then trigger the translation at run time only with __($print->{FILE}), but th

[PATCH v5 14/16] i18n: send-email: mark string with interpolation for translation

2016-11-08 Thread Vasco Almeida
Mark warnings, errors and other messages that are interpolated for translation. We call sprintf() before calling die() and in few other circumstances in order to replace the values on the placeholders. Signed-off-by: Vasco Almeida --- git-send-email.perl | 90 ---

[PATCH v5 04/16] i18n: add--interactive: mark strings with interpolation for translation

2016-11-08 Thread Vasco Almeida
Since at this point Git::I18N.perl lacks support for Perl i18n placeholder substitution, use of sprintf following die or error_msg is necessary for placeholder substitution take place. Signed-off-by: Vasco Almeida --- git-add--interactive.perl | 25 + 1 file changed, 13 i

[PATCH v5 15/16] i18n: send-email: mark composing message for translation

2016-11-08 Thread Vasco Almeida
When composing an e-mail, there is a message for the user whose lines are beginning in "GIT:" that can be marked for translation. Signed-off-by: Vasco Almeida --- git-send-email.perl | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/git-send-email.perl b/git-se

[PATCH v5 12/16] i18n: send-email: mark strings for translation

2016-11-08 Thread Vasco Almeida
Mark strings often displayed to the user for translation. Signed-off-by: Vasco Almeida --- git-send-email.perl | 52 ++-- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/git-send-email.perl b/git-send-email.perl index da81be40c..78e

[PATCH v5 06/16] i18n: add--interactive: mark plural strings

2016-11-08 Thread Vasco Almeida
Mark plural strings for translation. Unfold each action case in one entire sentence. Pass new keyword for xgettext to extract. Update test to include new subroutine __n() for plural strings handling. Update documentation to include a description of the new __n() subroutine. Signed-off-by: Vasc

[PATCH v5 13/16] i18n: send-email: mark warnings and errors for translation

2016-11-08 Thread Vasco Almeida
Mark warnings, errors and other messages for translation. Signed-off-by: Vasco Almeida --- git-send-email.perl | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/git-send-email.perl b/git-send-email.perl index 78eb59b21..982c6c076 100755 ---

[PATCH v5 07/16] i18n: add--interactive: mark patch prompt for translation

2016-11-08 Thread Vasco Almeida
Mark prompt message assembled in place for translation, unfolding each use case for each entry in the %patch_modes hash table. Previously, this script relied on whether $patch_mode was set to run the command patch_update_cmd() or show status and loop the main loop. Now, it uses $cmd to indicate we

[PATCH v5 03/16] i18n: add--interactive: mark simple here-documents for translation

2016-11-08 Thread Vasco Almeida
Mark messages in here-documents without interpolation for translation. The here-document delimiter \EOF, which is the same as 'EOF', indicates that the text is to be treated literally without interpolation of its content. Unfortunately xgettext is not able to extract here-documents delimited with

[PATCH v5 08/16] i18n: add--interactive: i18n of help_patch_cmd

2016-11-08 Thread Vasco Almeida
Mark help message of help_patch_cmd for translation. The message must be unfolded to be free of variables so we can have high quality translations. Signed-off-by: Vasco Almeida --- git-add--interactive.perl | 54 --- 1 file changed, 46 insertions(+),

[PATCH v5 10/16] i18n: add--interactive: remove %patch_modes entries

2016-11-08 Thread Vasco Almeida
Remove unnecessary entries from %patch_modes. After the i18n conversion, these entries are not used anymore. Signed-off-by: Vasco Almeida --- git-add--interactive.perl | 21 - 1 file changed, 21 deletions(-) diff --git a/git-add--interactive.perl b/git-add--interactive.perl

[PATCH v5 16/16] i18n: difftool: mark warnings for translation

2016-11-08 Thread Vasco Almeida
Signed-off-by: Vasco Almeida --- git-difftool.perl | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/git-difftool.perl b/git-difftool.perl index a5790d03a..8d3632e55 100755 --- a/git-difftool.perl +++ b/git-difftool.perl @@ -22,6 +22,7 @@ use File::Path

[PATCH v5 09/16] i18n: add--interactive: mark edit_hunk_manually message for translation

2016-11-08 Thread Vasco Almeida
Mark message of edit_hunk_manually displayed in the editing file when user chooses 'e' option. The message had to be unfolded to allow translation of the $participle verb. Some messages end up being exactly the same for some uses cases, but left it for easier change in the future, e.g., wanting t

[PATCH v5 01/16] Git.pm: add subroutines for commenting lines

2016-11-08 Thread Vasco Almeida
Add subroutines prefix_lines and comment_lines. Signed-off-by: Vasco Almeida --- perl/Git.pm | 23 +++ 1 file changed, 23 insertions(+) diff --git a/perl/Git.pm b/perl/Git.pm index b2732822a..17be59fb7 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -1438,6 +1438,29 @@ sub END

[PATCH v5 00/16] Mark strings in Perl scripts for translation

2016-11-08 Thread Vasco Almeida
Mark messages in some perl scripts for translation. In these series v5: - Add and use a subroutine to comment lines. This way we can mark strings for translation without including the comment char within them. - Mark for translation a message for the user when she is composing an e-mail in git

[PATCH v5 02/16] i18n: add--interactive: mark strings for translation

2016-11-08 Thread Vasco Almeida
Mark simple strings (without interpolation) for translation. Brackets around first parameter of ternary operator is necessary because otherwise xgettext fails to extract strings marked for translation from the rest of the file. Signed-off-by: Vasco Almeida --- git-add--interactive.perl | 76 +++

Re: [PATCH 5/6] config docs: Provide for config to specify tags not to abbreviate

2016-11-08 Thread Ian Jackson
Jacob Keller writes ("Re: [PATCH 5/6] config docs: Provide for config to specify tags not to abbreviate"): > On Mon, Nov 7, 2016 at 4:52 PM, Ian Jackson > wrote: > > +log.noAbbrevTags:: > > + Each value is a glob pattern, specifying tag nammes which > > + should always be displayed in

Re: [PATCH 0/6] Provide for config to specify tags not to abbreviate

2016-11-08 Thread Markus Hitter
Am 08.11.2016 um 01:54 schrieb Ian Jackson: > Please find in the following mails patches which provide a way to make > gitk display certain tags in full, even if they would normally be > abbreviated. TBH, I see a violation of tool independence with the choice of preference storage. Abbreviation o

Purchase order...........

2016-11-08 Thread james Stanley
pls here is the PO

Re: What's cooking in git.git (Oct 2016, #09; Mon, 31)

2016-11-08 Thread Karthik Nayak
Helo, On Tue, Nov 8, 2016 at 1:58 PM, Jacob Keller wrote: > On Nov 8, 2016 12:24 AM, "Karthik Nayak" wrote: >> Anything I could do to push this forward? It's been a while now. > > Hi, > > If this just needs more reviewers I can take a look. Do you possibly have a > link to the series so I can fi

Re: What's cooking in git.git (Oct 2016, #09; Mon, 31)

2016-11-08 Thread Karthik Nayak
Hello, > > * kn/ref-filter-branch-list (2016-05-17) 17 commits > - branch: implement '--format' option > - branch: use ref-filter printing APIs > - branch, tag: use porcelain output > - ref-filter: allow porcelain to translate messages in the output > - ref-filter: add `:dir` and `:base` opti