Re: [PATCH RFC] completion: add support for completing email aliases

2015-11-13 Thread SZEDER Gábor
Hi, Quoting Jacob Keller : From: Jacob Keller Extract email aliases from the sendemail.aliasesfile according to the known types. Implementation only extracts the alias name and does not attempt to complete email addresses. Add a few tests for simple layouts of the currently supported alias

[PATCHv4 2/9] submodule-config: keep update strategy around

2015-11-13 Thread Stefan Beller
We need the submodule update strategies in a later patch. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- submodule-config.c | 11 +++ submodule-config.h | 1 + 2 files changed, 12 insertions(+) diff --git a/submodule-config.c b/submodule-config.c index afe0ea8..4239b0e

[PATCHv4 0/9] Expose submodule parallelism to the user

2015-11-13 Thread Stefan Beller
This replaces sb/submodule-parallel-update. It applies on top of d075d2604c0 (Merge branch 'rs/daemon-plug-child-leak' into sb/submodule-parallel-update, with additionally having merged submodule-parallel-fetch, which has applied "run-command: detect finished children by closed pipe rather than wai

[PATCHv4 4/9] submodule-config: remove name_and_item_from_var

2015-11-13 Thread Stefan Beller
`name_and_item_from_var` does not provide the proper abstraction we need here in a later patch. Signed-off-by: Stefan Beller --- submodule-config.c | 48 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/submodule-config.c b/submodul

[PATCHv4 6/9] fetching submodules: respect `submodule.jobs` config option

2015-11-13 Thread Stefan Beller
This allows to configure fetching and updating in parallel without having the command line option. This moved the responsibility to determine how many parallel processes to start from builtin/fetch to submodule.c as we need a way to communicate "The user did not specify the number of parallel proc

[PATCHv4 7/9] git submodule update: have a dedicated helper for cloning

2015-11-13 Thread Stefan Beller
This introduces a new helper function in git submodule--helper which takes care of cloning all submodules, which we want to parallelize eventually. Some tests (such as empty URL, update_mode=none) are required in the helper to make the decision for cloning. These checks have been moved into the C

[PATCHv4 1/9] run_processes_parallel: delimit intermixed task output

2015-11-13 Thread Stefan Beller
This commit serves 2 purposes. First this may help the user who tries to diagnose intermixed process calls. Second this may be used in a later patch for testing. As the output of a command should not change visibly except for going faster, grepping for the trace output seems like a viable testing s

[PATCHv4 5/9] submodule-config: introduce parse_generic_submodule_config

2015-11-13 Thread Stefan Beller
This rewrites parse_config to distinguish between configs specific to one submodule and configs which apply generically to all submodules. We do not have generic submodule configs yet, but the next patch will introduce "submodule.jobs". Signed-off-by: Stefan Beller --- submodule-config.c | 41 ++

[PATCHv4 8/9] submodule update: expose parallelism to the user

2015-11-13 Thread Stefan Beller
Expose possible parallelism either via the "--jobs" CLI parameter or the "submodule.jobs" setting. By having the variable initialized to -1, we make sure 0 can be passed into the parallel processing machine, which will then pick as many parallel workers as there are CPUs. Signed-off-by: Stefan Be

[PATCHv4 9/9] clone: allow an explicit argument for parallel submodule clones

2015-11-13 Thread Stefan Beller
Just pass it along to "git submodule update", which may pick reasonable defaults if you don't specify an explicit number. Signed-off-by: Stefan Beller --- Documentation/git-clone.txt | 6 +- builtin/clone.c | 19 +-- t/t7406-submodule-update.sh | 15 +

[PATCHv4 3/9] submodule-config: drop check against NULL

2015-11-13 Thread Stefan Beller
Adhere to the common coding style of Git and not check explicitly for NULL throughout the file. There are still other occurrences in the code base but that is usually inside of conditions with side effects. Signed-off-by: Stefan Beller --- submodule-config.c | 8 1 file changed, 4 inser

Re: [PATCH 2/3] t5304: Add test for .bitmap garbage files

2015-11-13 Thread Stefan Beller
On Fri, Nov 13, 2015 at 4:10 PM, Doug Kelly wrote: > When checking for pack garbage, .bitmap files are now detected as > garbage when not associated with another .pack/.idx file. > > Signed-off-by: Doug Kelly > --- > t/t5304-prune.sh | 24 +--- > 1 file changed, 21 insertions

Re: [PATCH 1/3] prepare_packed_git(): find more garbage

2015-11-13 Thread Doug Kelly
Yes, without a doubt. I think I'm blaming this one on being late on a Friday afternoon, and really not thinking out the logic clearly. :) On Fri, Nov 13, 2015 at 4:43 PM, Stefan Beller wrote: >> + else if (seen_bits & PACKDIR_FILE_PACK && seen_bits ^ >> ~PACKDIR_FILE_IDX) > > as just talk

[PATCH 1/3] prepare_packed_git(): find more garbage

2015-11-13 Thread Doug Kelly
.bitmap and .keep files without .idx/.pack don't make much sense, so make sure these are reported as garbage as well. At the same time, refactoring report_garbage to handle extra bits. Signed-off-by: Doug Kelly --- builtin/count-objects.c | 16 ++-- cache.h | 4 +++-

[PATCH 3/3] gc: Clean garbage .bitmap files from pack dir

2015-11-13 Thread Doug Kelly
Similar to cleaning up excess .idx files, clean any garbage .bitmap files that are not otherwise associated with any .idx/.pack files. Signed-off-by: Doug Kelly --- builtin/gc.c | 12 ++-- t/t5304-prune.sh | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/built

[PATCH 2/3] t5304: Add test for .bitmap garbage files

2015-11-13 Thread Doug Kelly
When checking for pack garbage, .bitmap files are now detected as garbage when not associated with another .pack/.idx file. Signed-off-by: Doug Kelly --- t/t5304-prune.sh | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/t/t5304-prune.sh b/t/t5304-prun

Re: [PATCH 1/3] prepare_packed_git(): find more garbage

2015-11-13 Thread Stefan Beller
> + else if (seen_bits & PACKDIR_FILE_PACK && seen_bits ^ > ~PACKDIR_FILE_IDX) as just talked about: did you mention && !(seen_bits & FILE_IDX) > > + if (seen_bits == > (PACKDIR_FILE_PACK|PACKDIR_FILE_IDX|PACKDIR_FILE_BITMAP)) > + return; > + > + if (seen_bits ==

Test. Please ignore

2015-11-13 Thread team
Test message. Please ignore. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 1/3] prepare_packed_git(): find more garbage

2015-11-13 Thread Doug Kelly
.bitmap and .keep files without .idx/.pack don't make much sense, so make sure these are reported as garbage as well. At the same time, refactoring report_garbage to handle extra bits. Signed-off-by: Doug Kelly --- builtin/count-objects.c | 16 ++-- cache.h | 4 +++-

[PATCH 0/3] Add cleanup for garbage .bitmap files

2015-11-13 Thread Doug Kelly
Following Peff and Junio's comments when adding support for cleaning garbage .idx files left in the pack directory, this patch introduces the ability to detect garbage .bitmap files. Additionally, .keep files are still reported, but no action is taken to clean them. This includes some refactor ar

[PATCH 3/3] gc: Clean garbage .bitmap files from pack dir

2015-11-13 Thread Doug Kelly
Similar to cleaning up excess .idx files, clean any garbage .bitmap files that are not otherwise associated with any .idx/.pack files. Signed-off-by: Doug Kelly --- builtin/gc.c | 12 ++-- t/t5304-prune.sh | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/built

[PATCH 2/3] t5304: Add test for .bitmap garbage files

2015-11-13 Thread Doug Kelly
When checking for pack garbage, .bitmap files are now detected as garbage when not associated with another .pack/.idx file. Signed-off-by: Doug Kelly --- t/t5304-prune.sh | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/t/t5304-prune.sh b/t/t5304-prun

Re: [PATCH v2] add test to demonstrate that shallow recursive clones fail

2015-11-13 Thread Stefan Beller
On Fri, Nov 13, 2015 at 3:41 PM, Jeff King wrote: > On Fri, Nov 13, 2015 at 06:38:07PM -0500, Jeff King wrote: > >> On Fri, Nov 13, 2015 at 03:16:01PM -0800, Stefan Beller wrote: >> >> > Junio wrote on Oct 09, 2014: >> > > This is so non-standard a thing to do that I doubt it is worth >> > > suppo

Re: [PATCH] refs.c: get_ref_cache: use a bucket hash

2015-11-13 Thread Jeff King
On Fri, Nov 13, 2015 at 04:29:15PM +0100, Andreas Krey wrote: > > Likewise, I think dir.c:remove_dir_recurse is in a similar boat. > > Grepping for resolve_gitlink_ref, it looks like there may be others, > > too. > > Can't we handle this in resolve_gitlink_ref itself? As I understand it, > it sho

Re: git clean performance issues

2015-11-13 Thread Jeff King
On Fri, Nov 13, 2015 at 03:19:07PM +0100, Andreas Krey wrote: > On Sat, 04 Apr 2015 15:55:07 +, Jeff King wrote: > ... > > I think this is the same issue that was discussed here: > > > > http://thread.gmane.org/gmane.comp.version-control.git/265560/focus&5585 > > > > There is some discussi

Re: [PATCH v2] add test to demonstrate that shallow recursive clones fail

2015-11-13 Thread Jeff King
On Fri, Nov 13, 2015 at 06:38:07PM -0500, Jeff King wrote: > On Fri, Nov 13, 2015 at 03:16:01PM -0800, Stefan Beller wrote: > > > Junio wrote on Oct 09, 2014: > > > This is so non-standard a thing to do that I doubt it is worth > > > supporting with "git clone". "git clone --branch", which is ab

Re: [PATCH v2] add test to demonstrate that shallow recursive clones fail

2015-11-13 Thread Jeff King
On Fri, Nov 13, 2015 at 03:16:01PM -0800, Stefan Beller wrote: > Junio wrote on Oct 09, 2014: > > This is so non-standard a thing to do that I doubt it is worth > > supporting with "git clone". "git clone --branch", which is about > "> I want to follow that particular branch", would not mesh well

Re: Re: git log --merges doesn't show commits as expected

2015-11-13 Thread Jeff King
On Fri, Nov 13, 2015 at 11:10:44PM +, Dominik Rauch wrote: > However, I don't think the default simplification algorithm is a good > default when used in combination with "--merges". "git log --merges > file" looks very natural if I want to answer the question "When has > file been merged into

Re: [PATCH] allow hooks to ignore their standard input stream

2015-11-13 Thread Jeff King
On Fri, Nov 13, 2015 at 10:33:03AM +0100, Clemens Buchacher wrote: > Since ec7dbd145 (receive-pack: allow hooks to ignore its standard input > stream) > the pre-receive and post-receive hooks ignore SIGPIPE. Do the same for the > remaining hooks pre-push and post-rewrite, which read from standard

Re: [PATCH v2] add test to demonstrate that shallow recursive clones fail

2015-11-13 Thread Stefan Beller
On Fri, Nov 13, 2015 at 10:41 AM, Stefan Beller wrote: > On Thu, Nov 12, 2015 at 9:35 PM, Jeff King wrote: >> >> Hrm. Do we want to make these workarounds work correctly? Or is the >> final solution going to be that the first command you gave simply works, >> and no workarounds are needed. If th

Re: Re: git log --merges doesn't show commits as expected

2015-11-13 Thread Dominik Rauch
Thank you Jeff for your elaboration! The algorithm is now clear to me and I can see why the log has been empty. However, I don't think the default simplification algorithm is a good default when used in combination with "--merges". "git log --merges file" looks very natural if I want to answer

Re: [PATCH] rebase-i-exec: Allow space in SHELL_PATH

2015-11-13 Thread Jeff King
On Fri, Nov 13, 2015 at 11:47:40PM +0100, Fredrik Medley wrote: > > Hmm. Now I'm a bit puzzled. It sounds like the installed file does have > > @SHELL_PATH@ set to /bin/sh, which is normal. And presumably the setting > > containing space is coming from the $SHELL environment variable. > I wrote th

Re: [PATCH] rebase-i-exec: Allow space in SHELL_PATH

2015-11-13 Thread Fredrik Medley
2015-11-13 23:27 GMT+01:00 Jeff King : > On Fri, Nov 13, 2015 at 04:25:18PM +0100, Fredrik Medley wrote: > >> >> - ${SHELL:-@SHELL_PATH@} -c "$rest" # Actual execution >> >> + "${SHELL:-@SHELL_PATH@}" -c "$rest" # Actual execution >> > >> > I think this is the right thing to

Re: git log --merges doesn't show commits as expected

2015-11-13 Thread Jeff King
On Fri, Nov 13, 2015 at 04:21:36PM +, Dominik Rauch wrote: > (This is my first post to this mailing list and I couldn't find a FAQ > section - please excuse me, if I haven't followed all the established > posting guidelines yet.) This is the right place. Welcome. :) > I have the following re

Re: [PATCH] rebase-i-exec: Allow space in SHELL_PATH

2015-11-13 Thread Jeff King
On Fri, Nov 13, 2015 at 04:25:18PM +0100, Fredrik Medley wrote: > >> - ${SHELL:-@SHELL_PATH@} -c "$rest" # Actual execution > >> + "${SHELL:-@SHELL_PATH@}" -c "$rest" # Actual execution > > > > I think this is the right thing to do (at least I could not think of a > > case

Re: Replicating the default "git log" format with a format string.

2015-11-13 Thread Jeff King
On Fri, Nov 13, 2015 at 01:41:23PM -0800, Jacob Keller wrote: > On Thu, Nov 12, 2015 at 9:38 PM, Jeff King wrote: > >> Is it possible to exactly replicate the default "git log" format with a > >> format string? > > > > Sadly, no, I don't think it is possible with the current format > > specifiers

Re: Replicating the default "git log" format with a format string.

2015-11-13 Thread Jacob Keller
On Thu, Nov 12, 2015 at 9:38 PM, Jeff King wrote: >> Is it possible to exactly replicate the default "git log" format with a >> format string? > > Sadly, no, I don't think it is possible with the current format > specifiers. It would be nice if it was, though. > > -Peff > -- Isn't this something

Re: [PATCHv3 08/11] fetching submodules: respect `submodule.jobs` config option

2015-11-13 Thread Stefan Beller
On Fri, Nov 13, 2015 at 12:47 PM, Jens Lehmann wrote: > Am 12.11.2015 um 00:34 schrieb Stefan Beller: >> >> On Wed, Nov 11, 2015 at 11:55 AM, Jens Lehmann >> wrote: TL;DR: checkout is serial, network-related stuff only will be using submodule.jobs >>> >>> >>> >>> My point bein

Re: [PATCHv3 08/11] fetching submodules: respect `submodule.jobs` config option

2015-11-13 Thread Jens Lehmann
Am 12.11.2015 um 00:34 schrieb Stefan Beller: On Wed, Nov 11, 2015 at 11:55 AM, Jens Lehmann wrote: TL;DR: checkout is serial, network-related stuff only will be using submodule.jobs My point being: isn't "jobs" a bit too generic for a config option that is only relevant for network-related

Re: [PATCH] http: fix some printf format warnings on 32-bit builds

2015-11-13 Thread Ramsay Jones
On 13/11/15 08:57, Eric Sunshine wrote: > On Fri, Nov 13, 2015 at 3:46 AM, Lars Schneider > wrote: >> On 11 Nov 2015, at 18:49, Ramsay Jones wrote: >>> On 11/11/15 02:00, Stefan Beller wrote: On Tue, Nov 10, 2015 at 5:22 PM, Eric Sunshine wrote: > On Tue, Nov 10, 2015 at 7:23 PM

Re: [PATCH v2] add test to demonstrate that shallow recursive clones fail

2015-11-13 Thread Stefan Beller
On Thu, Nov 12, 2015 at 9:35 PM, Jeff King wrote: > > Hrm. Do we want to make these workarounds work correctly? Or is the > final solution going to be that the first command you gave simply works, > and no workarounds are needed. If the latter, I wonder if we want to be > adding tests for the wor

[PATCH RFC] completion: add support for completing email aliases

2015-11-13 Thread Jacob Keller
From: Jacob Keller Extract email aliases from the sendemail.aliasesfile according to the known types. Implementation only extracts the alias name and does not attempt to complete email addresses. Add a few tests for simple layouts of the currently supported alias filetypes. Signed-off-by: Jacob

[PATCH v2] contrib/subtree: unwrap tag refs

2015-11-13 Thread Rob Mayoff
If a subtree was added using a tag ref, the tag ref is stored in the subtree commit message instead of the underlying commit's ref. To split or push subsequent changes to the subtree, the subtree command needs to unwrap the tag ref. This patch makes it do so. The problem was described in a messag

Re: [PATCH] rebase-i-exec: Allow space in SHELL_PATH

2015-11-13 Thread Matthieu Moy
Fredrik Medley writes: > --- a/git-rebase--interactive.sh > +++ b/git-rebase--interactive.sh > @@ -610,7 +610,7 @@ do_next () { > read -r command rest < "$todo" > mark_action_done > printf 'Executing: %s\n' "$rest" > - ${SHELL:-@SHELL_PATH@} -

git log --merges doesn't show commits as expected

2015-11-13 Thread Dominik Rauch
Hello! (This is my first post to this mailing list and I couldn't find a FAQ section - please excuse me, if I haven't followed all the established posting guidelines yet.) I have the following repository tree: C |\ | B | / A Commit A: Parents=(). Initial commit. Contains file foo with conten

[RFC] rename detection: allow more renames

2015-11-13 Thread Andreas Krey
Hi all, we also ran into the maximum rename limit in the rename detection. (Yes, we get a lot of rename candidates when cherry-picking between two specific releases.) The code talks about limiting the size of the rename matrix, but as far as I can see, the matrix itself never exists as such, and

[PATCH] notes: allow merging from arbitrary references

2015-11-13 Thread Jacob Keller
From: Jacob Keller Create a new expansion function, expand_loose_notes_ref which will expand any ref using get_sha1, but falls back to expand_notes_ref if this fails. The contents of the strbuf will be either the hex string of the sha1, or the expanded notes ref. It is expected to be re-expanded

Re: [PATCH] refs.c: get_ref_cache: use a bucket hash

2015-11-13 Thread Andreas Krey
On Tue, 17 Mar 2015 01:48:00 +, Jeff King wrote: > On Mon, Mar 16, 2015 at 10:35:18PM -0700, Junio C Hamano wrote: > > > > It looks like we don't even really care about the value of HEAD. We just > > > want to know "is it a git directory?". I think in other places (like > > > "git add"), we ju

Re: [PATCH] rebase-i-exec: Allow space in SHELL_PATH

2015-11-13 Thread Fredrik Medley
2015-11-13 7:25 GMT+01:00 Jeff King : > On Fri, Nov 13, 2015 at 07:03:19AM +0100, Fredrik Medley wrote: > >> On Windows, when Git is installed under "C:\Program Files\Git", SHELL_PATH >> will include a space. Fix "git rebase --interactive --exec" so that it >> works with spaces in SHELL_PATH. >> >>

Re: [PATCH 0/7] contrib/subtree: Testsuite cleanup

2015-11-13 Thread Alexey Shumkin
On Thu, Nov 12, 2015 at 08:32:29PM -0600, David Greene wrote: > Sending again with a proper From: address after rebasing on latest master. > > Copying the maintainers because the origin patchset didn't get any > comments and I'm unsure of how to proceed. > > These are some old changes I have lyin

Re: git clean performance issues

2015-11-13 Thread Andreas Krey
On Sat, 04 Apr 2015 15:55:07 +, Jeff King wrote: ... > I think this is the same issue that was discussed here: > > http://thread.gmane.org/gmane.comp.version-control.git/265560/focus&5585 > > There is some discussion of a possible fix in that thread. I was hoping > that Andreas was going to

Re: [PATCH] http: fix some printf format warnings on 32-bit builds

2015-11-13 Thread Lars Schneider
> On 13 Nov 2015, at 11:32, Torsten Bögershausen wrote: > > On 2015-11-13 09.57, Eric Sunshine wrote: >> On Fri, Nov 13, 2015 at 3:46 AM, Lars Schneider >> wrote: >>> On 11 Nov 2015, at 18:49, Ramsay Jones wrote: On 11/11/15 02:00, Stefan Beller wrote: > On Tue, Nov 10, 2015 at 5:22 P

Re: [PATCH] http: fix some printf format warnings on 32-bit builds

2015-11-13 Thread Torsten Bögershausen
On 2015-11-13 09.57, Eric Sunshine wrote: > On Fri, Nov 13, 2015 at 3:46 AM, Lars Schneider > wrote: >> On 11 Nov 2015, at 18:49, Ramsay Jones wrote: >>> On 11/11/15 02:00, Stefan Beller wrote: On Tue, Nov 10, 2015 at 5:22 PM, Eric Sunshine wrote: > On Tue, Nov 10, 2015 at 7:23 PM

Re: [PATCH] allow hooks to ignore their standard input stream

2015-11-13 Thread Clemens Buchacher
On Fri, Nov 13, 2015 at 01:17:29AM -0500, Jeff King wrote: > > The test below reliably fails without your patch and passes with it, and > seems to run reasonably quickly for me: Thank you. I confirm the same behavior on my system. Below I have added your change to the patch. -->o-- Since ec7dbd1

Re: [PATCH] http: fix some printf format warnings on 32-bit builds

2015-11-13 Thread Eric Sunshine
On Fri, Nov 13, 2015 at 3:46 AM, Lars Schneider wrote: > On 11 Nov 2015, at 18:49, Ramsay Jones wrote: >> On 11/11/15 02:00, Stefan Beller wrote: >>> On Tue, Nov 10, 2015 at 5:22 PM, Eric Sunshine >>> wrote: On Tue, Nov 10, 2015 at 7:23 PM, Ramsay Jones wrote: > Commit f8117f55 (

Re: [PATCH] http: fix some printf format warnings on 32-bit builds

2015-11-13 Thread Lars Schneider
On 11 Nov 2015, at 18:49, Ramsay Jones wrote: > > > On 11/11/15 02:00, Stefan Beller wrote: >> On Tue, Nov 10, 2015 at 5:22 PM, Eric Sunshine >> wrote: >>> On Tue, Nov 10, 2015 at 7:23 PM, Ramsay Jones >>> wrote: Commit f8117f55 ("http: use off_t to store partial file size", 02-11