Re: [PATCH v6 5/6] grep: enable recurse-submodules to work on objects

2016-11-30 Thread Johannes Sixt
Am 01.12.2016 um 02:28 schrieb Brandon Williams: + git init "su:b" && Don't do that. Colons in file names won't work on Windows. -- Hannes

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Jeff King
On Thu, Dec 01, 2016 at 08:09:16AM +0100, Johannes Sixt wrote: > Am 01.12.2016 um 00:40 schrieb Jeff King: > > 20813 access("su:b/../.git/modules/su:b/refs", X_OK) = 0 > > Side note: where does this weirdness "su:b" come from? (I haven't looked at > any of the patches, yet, let alone tested.)

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Johannes Sixt
Am 01.12.2016 um 00:40 schrieb Jeff King: 20813 access("su:b/../.git/modules/su:b/refs", X_OK) = 0 Side note: where does this weirdness "su:b" come from? (I haven't looked at any of the patches, yet, let alone tested.) Colons in file or directory names won't work on Windows (in the way one

Re: 'git repack' and repack.writeBitmaps=true with kept packs

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 04:15:33PM -0800, Steven Noonan wrote: > It seems like it's behaving as though I've provided > --pack-kept-objects. In order to ensure the .bitmap is created, it > repacks everything, including everything in existing .pack files (not > respecting .keep). But then it's not

Re: [PATCH] xdiff: Do not enable XDL_FAST_HASH by default

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 11:26:43PM -0500, Anders Kaseorg wrote: > > So I suspect a better strategy in general is to just override the > > uname_* variables when cross-compiling. > > The specific case of an i386 userspace on an x86_64 kernel is important > independently of the general cross

[PATCH] xdiff: Do not enable XDL_FAST_HASH by default

2016-11-30 Thread Anders Kaseorg
Although XDL_FAST_HASH computes hashes slightly faster on some architectures, its collision characteristics are much worse, resulting in some pathological diffs running over 100x slower (http://public-inbox.org/git/20141222041944.ga...@peff.net/). Furthermore, it was being enabled when ‘uname -m’

Re: [PATCH v6 1/6] submodules: add helper functions to determine presence of submodules

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 05:28:29PM -0800, Brandon Williams wrote: > +/* > + * Determine if a submodule has been populated at a given 'path' > + */ > +int is_submodule_populated(const char *path) > +{ > + int ret = 0; > + struct stat st; > + char *gitdir = xstrfmt("%s/.git", path); > +

[PATCH] xdiff: Do not enable XDL_FAST_HASH by default

2016-11-30 Thread Anders Kaseorg
Although XDL_FAST_HASH computes hashes slightly faster on some architectures, its collision characteristics are much worse, resulting in some pathological diffs running over 100x slower (http://public-inbox.org/git/20141222041944.ga...@peff.net/). Furthermore, it was being enabled when ‘uname -m’

Re: [PATCH v6 0/6] recursively grep across submodules

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 05:28:28PM -0800, Brandon Williams wrote: > v6 fixes a race condition which existed in the 'is_submodule_populated' > function. Instead of calling 'resolve_gitdir' to check for the existance of a > .git file/directory, use 'stat'. 'resolve_gitdir' calls 'chdir' which can

Re: [PATCH] difftool.c: mark a file-local symbol with static

2016-11-30 Thread Jeff King
On Thu, Dec 01, 2016 at 01:18:35AM +, Ramsay Jones wrote: > >> I forgot, we ended up reversing course later and silencing them: > >> > >> http://public-inbox.org/git/20140505052117.gc6...@sigill.intra.peff.net/ > >> > >> By the rationale of that conversation, we should be doing: > >> > >>

Re: [PATCH] Define XDL_FAST_HASH when building *for* (not *on*) x86_64

2016-11-30 Thread Jeff King
[resend; the original had an outdated address for Thomas, and I would definitely like his blessing before removing XDL_FAST_HASH]. On Wed, Nov 30, 2016 at 10:04:07PM -0500, Anders Kaseorg wrote: > Previously, XDL_FAST_HASH was defined when ‘uname -m’ returns x86_64, > even if we are

Re: [PATCH] Define XDL_FAST_HASH when building *for* (not *on*) x86_64

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 10:04:07PM -0500, Anders Kaseorg wrote: > Previously, XDL_FAST_HASH was defined when ‘uname -m’ returns x86_64, > even if we are cross-compiling for a different architecture. Check > the __x86_64__ compiler macro instead. > > In addition to fixing the cross compilation

[PATCH] Define XDL_FAST_HASH when building *for* (not *on*) x86_64

2016-11-30 Thread Anders Kaseorg
Previously, XDL_FAST_HASH was defined when ‘uname -m’ returns x86_64, even if we are cross-compiling for a different architecture. Check the __x86_64__ compiler macro instead. In addition to fixing the cross compilation bug, this is needed to pass the Debian build reproducibility test

[PATCH v6 4/6] grep: optionally recurse into submodules

2016-11-30 Thread Brandon Williams
Allow grep to recognize submodules and recursively search for patterns in each submodule. This is done by forking off a process to recursively call grep on each submodule. The top level --super-prefix option is used to pass a path to the submodule which can in turn be used to prepend to output

[PATCH v6 6/6] grep: search history of moved submodules

2016-11-30 Thread Brandon Williams
If a submodule was renamed at any point since it's inception then if you were to try and grep on a commit prior to the submodule being moved, you wouldn't be able to find a working directory for the submodule since the path in the past is different from the current path. This patch teaches grep

[PATCH v6 3/6] grep: add submodules as a grep source type

2016-11-30 Thread Brandon Williams
Add `GREP_SOURCE_SUBMODULE` as a grep_source type and cases for this new type in the various switch statements in grep.c. When initializing a grep_source with type `GREP_SOURCE_SUBMODULE` the identifier can either be NULL (to indicate that the working tree will be used) or a SHA1 (the REV of the

[PATCH v6 2/6] submodules: load gitmodules file from commit sha1

2016-11-30 Thread Brandon Williams
teach submodules to load a '.gitmodules' file from a commit sha1. This enables the population of the submodule_cache to be based on the state of the '.gitmodules' file from a particular commit. Signed-off-by: Brandon Williams --- cache.h| 2 ++ config.c

[PATCH v6 5/6] grep: enable recurse-submodules to work on objects

2016-11-30 Thread Brandon Williams
Teach grep to recursively search in submodules when provided with a object. This allows grep to search a submodule based on the state of the submodule that is present in a commit of the super project. When grep is provided with a object, the name of the object is prefixed to all output. In

[PATCH v6 1/6] submodules: add helper functions to determine presence of submodules

2016-11-30 Thread Brandon Williams
Add two helper functions to submodules.c. `is_submodule_initialized()` checks if a submodule has been initialized at a given path and `is_submodule_populated()` check if a submodule has been checked out at a given path. Signed-off-by: Brandon Williams --- submodule.c | 39

[PATCH v6 0/6] recursively grep across submodules

2016-11-30 Thread Brandon Williams
v6 fixes a race condition which existed in the 'is_submodule_populated' function. Instead of calling 'resolve_gitdir' to check for the existance of a .git file/directory, use 'stat'. 'resolve_gitdir' calls 'chdir' which can affect other running threads trying to load thier files into a buffer in

[PATCH] Documentation/install-webdoc.sh: quote a potentially unsafe shell expansion

2016-11-30 Thread Austin English
Found via shellcheck In Documentation/install-webdoc.sh line 21: mkdir -p $(dirname "$T/$h") ^-- SC2046: Quote this to prevent word splitting. -- -Austin GPG: 14FB D7EA A041 937B From 1050538f252d22311185065ab8837c71b17003fb Mon Sep 17 00:00:00 2001 From: Austin English

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Brandon Williams
On 11/30, Stefan Beller wrote: > > Oh interesting, I wonder if there is a way to not have to perform a > > chdir since taking a lock to lstat wouldn't be ideal. > > I think we could rewrite is_submodule_populated to be > > int is_submodule_populated_cheap_with_no_chdir(char *path) > { >

Re: [PATCH] difftool.c: mark a file-local symbol with static

2016-11-30 Thread Ramsay Jones
On 30/11/16 23:46, Junio C Hamano wrote: > Jeff King writes: > >> I forgot, we ended up reversing course later and silencing them: >> >> http://public-inbox.org/git/20140505052117.gc6...@sigill.intra.peff.net/ >> >> By the rationale of that conversation, we should be doing: >>

[PATCH] transport-helper: drop broken "unchanged" feature

2016-11-30 Thread Jonathan Tan
Commit f8ec916 ("Allow helpers to report in "list" command that the ref is unchanged", 2009-11-17) allowed a remote helper to report that a ref is unchanged even if it did not know the contents of a ref. However, that commit also made Git wrongly assume that such a remote ref always has the

[BUG?] Remote helper's wrong assumption of unchanged ref

2016-11-30 Thread Jonathan Tan
Commit f8ec916 ("Allow helpers to report in "list" command that the ref is unchanged", 2009-11-17) allowed a remote helper to report that a ref is unchanged even if it did not know the contents of a ref. However, that commit also made Git assume that such a remote ref has the contents of the local

Grant.

2016-11-30 Thread Capital Web
Hello, A donation has been made out to you and your family from my foundation. For details, send an E-mail now to: castrat...@gmail.com Regards

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 04:06:05PM -0800, Brandon Williams wrote: > On 11/30, Jeff King wrote: > > So I think there is some other chdir(). I'm not sure if there is an easy > > way to get a backtrace on every call to chdir() in every thread. I'm > > sure somebody more clever than me could figure

'git repack' and repack.writeBitmaps=true with kept packs

2016-11-30 Thread Steven Noonan
I have some unexpected behavior with 'git repack' on git 2.10.2 and 2.11.0. $ cat /etc/gitconfig [pack] writeBitmapHashCache = true [repack] writeBitmaps = true $ touch objects/pack/pack-3841d81123a96cedeb3c1bd7acf7e29bfba26639.keep $ find objects objects objects/pack

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Stefan Beller
> Oh interesting, I wonder if there is a way to not have to perform a > chdir since taking a lock to lstat wouldn't be ideal. I think we could rewrite is_submodule_populated to be int is_submodule_populated_cheap_with_no_chdir(char *path) { return stat(path + ".git") } i.e. just take the

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Brandon Williams
On 11/30, Jeff King wrote: > On Wed, Nov 30, 2016 at 06:59:52PM -0500, Jeff King wrote: > > > So I think there is some other chdir(). I'm not sure if there is an easy > > way to get a backtrace on every call to chdir() in every thread. I'm > > sure somebody more clever than me could figure out

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Brandon Williams
On 11/30, Jeff King wrote: > So I think there is some other chdir(). I'm not sure if there is an easy > way to get a backtrace on every call to chdir() in every thread. I'm > sure somebody more clever than me could figure out how to make gdb do it > automatically, but it might be workable

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 06:59:52PM -0500, Jeff King wrote: > So I think there is some other chdir(). I'm not sure if there is an easy > way to get a backtrace on every call to chdir() in every thread. I'm > sure somebody more clever than me could figure out how to make gdb do it > automatically,

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 06:46:36PM -0500, Jeff King wrote: > > For now the work around could be to just pass "-C " to the child > > process instead of relying on run-command to chdir. > > Yeah, that would push it after the exec. I just don't understand why > that would be necessary. Hmm. It

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Brandon Williams
On 11/30, Jeff King wrote: > On Wed, Nov 30, 2016 at 03:42:48PM -0800, Brandon Williams wrote: > > > > where 20813 and 20867 are two threads of the main process. One is doing > > > the lstat and the other calls chdir at the same moment. > > > > Yeah so it looks like the start_command function

Re: [PATCH] difftool.c: mark a file-local symbol with static

2016-11-30 Thread Junio C Hamano
Jeff King writes: > I forgot, we ended up reversing course later and silencing them: > > http://public-inbox.org/git/20140505052117.gc6...@sigill.intra.peff.net/ > > By the rationale of that conversation, we should be doing: > > warning("%s", ""); > > here. I forgot too.

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 03:42:48PM -0800, Brandon Williams wrote: > > where 20813 and 20867 are two threads of the main process. One is doing > > the lstat and the other calls chdir at the same moment. > > Yeah so it looks like the start_command function calls chdir. Which > means any uses of

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Brandon Williams
On 11/30, Jeff King wrote: > On Wed, Nov 30, 2016 at 06:32:04PM -0500, Jeff King wrote: > > > On Wed, Nov 30, 2016 at 03:28:23PM -0800, Brandon Williams wrote: > > > > > So I couldn't find a race condition in the code. I tracked the problem > > > to grep_source_load_file which attempts to run

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Stefan Beller
On Wed, Nov 30, 2016 at 3:40 PM, Jeff King wrote: > On Wed, Nov 30, 2016 at 06:32:04PM -0500, Jeff King wrote: > >> On Wed, Nov 30, 2016 at 03:28:23PM -0800, Brandon Williams wrote: >> >> > So I couldn't find a race condition in the code. I tracked the problem >> > to

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 06:32:04PM -0500, Jeff King wrote: > On Wed, Nov 30, 2016 at 03:28:23PM -0800, Brandon Williams wrote: > > > So I couldn't find a race condition in the code. I tracked the problem > > to grep_source_load_file which attempts to run lstat on the file so that > > it can

Re: [RFC/PATCH v3 01/16] Add initial external odb support

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 03:30:09PM -0800, Junio C Hamano wrote: > Christian Couder writes: > > > From: Jeff King > > > > Signed-off-by: Christian Couder > > --- > > By the time the series loses RFC prefix, we'd need to see

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 03:28:23PM -0800, Brandon Williams wrote: > So I couldn't find a race condition in the code. I tracked the problem > to grep_source_load_file which attempts to run lstat on the file so that > it can read it into a buffer. The lstat call fails with ENOENT (which >

Re: [RFC/PATCH v3 01/16] Add initial external odb support

2016-11-30 Thread Junio C Hamano
Christian Couder writes: > From: Jeff King > > Signed-off-by: Christian Couder > --- By the time the series loses RFC prefix, we'd need to see the above three lines straightened out a bit more, e.g. a real message and a more

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Brandon Williams
On 11/30, Brandon Williams wrote: > On 11/29, Jeff King wrote: > > On Tue, Nov 29, 2016 at 01:37:59AM -0500, Jeff King wrote: > > > > > 2. Grep threads doing more complicated stuff that needs to take a > > > lock. You might try building with -fsanitize=thread to see if it > > > turns

[RFC/PATCH v3 08/16] t0400: add test for external odb write support

2016-11-30 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0400-external-odb.sh | 8 1 file changed, 8 insertions(+) diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh index 6c6da5cf4f..3c868cad4c 100755 --- a/t/t0400-external-odb.sh +++ b/t/t0400-external-odb.sh @@

[RFC/PATCH v3 04/16] t0400: add 'put' command to odb-helper script

2016-11-30 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0400-external-odb.sh | 14 ++ 1 file changed, 14 insertions(+) diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh index fe85413725..0f1bb97f38 100755 --- a/t/t0400-external-odb.sh +++

Re: [PATCH] difftool.c: mark a file-local symbol with static

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 10:37:40PM +, Ramsay Jones wrote: > > Anyway. Those are all options, but I don't think there is any problem > > with sticking with warning("") for now. It is not the first part of the > > code that tickles the format-zero-length warning. > > Hmm, well I have been

Re: "git add -p ." raises an unexpected "warning: empty strings as pathspecs will be made invalid in upcoming releases. please use . instead if you meant to match all paths"

2016-11-30 Thread Junio C Hamano
Junio C Hamano forgot to Cc: the author of the most relevant change to the issue, d426430e6e ("pathspec: warn on empty strings as pathspec", 2016-06-22). > Kevin Daudt writes: > >> On Wed, Nov 30, 2016 at 12:31:49PM -0800, Peter Urda wrote: >>> After upgrading

Re: [PATCH] difftool.c: mark a file-local symbol with static

2016-11-30 Thread Ramsay Jones
On 30/11/16 21:25, Jeff King wrote: > On Wed, Nov 30, 2016 at 12:40:25PM -0800, Junio C Hamano wrote: > >> Ramsay Jones writes: >> >>> [I have fixed my config.mak file now, so I don't see the warning >>> anymore! Having -Wno-format-zero-length in DEVELOPER_CFLAGS,

Re: [RFC/PATCH v3 00/16] Add initial experimental external ODB support

2016-11-30 Thread Junio C Hamano
Christian Couder writes: > For now there should be one odb ref per blob. Each ref name should be > refs/odbs// where is the sha1 of the blob stored > in the external odb named . > > These odb refs should all point to a blob that should be stored in the > Git

Re: [PATCHv2 4/4] submodule: add embed-git-dir function

2016-11-30 Thread Junio C Hamano
Stefan Beller writes: > On Wed, Nov 30, 2016 at 1:39 PM, Junio C Hamano wrote: >> Stefan Beller writes: >> >>> git relocate-git-dir (--into-workingtree|--into-gitdir) \ >> >> I am not sure if you meant this as a submodule-specific

[RFC/PATCH v3 12/16] lib-httpd: add upload.sh

2016-11-30 Thread Christian Couder
This cgi will be used to upload objects to, or to delete objects from, an apache web server. This way the apache server can work as an external object database. Signed-off-by: Christian Couder --- t/lib-httpd.sh| 1 + t/lib-httpd/upload.sh | 45

[RFC/PATCH v3 02/16] external odb foreach

2016-11-30 Thread Christian Couder
From: Jeff King --- external-odb.c | 14 ++ external-odb.h | 6 ++ odb-helper.c | 15 +++ odb-helper.h | 4 4 files changed, 39 insertions(+) diff --git a/external-odb.c b/external-odb.c index 1ccfa99a01..42978a3298 100644 ---

Re: "git add -p ." raises an unexpected "warning: empty strings as pathspecs will be made invalid in upcoming releases. please use . instead if you meant to match all paths"

2016-11-30 Thread Junio C Hamano
Kevin Daudt writes: > On Wed, Nov 30, 2016 at 12:31:49PM -0800, Peter Urda wrote: >> After upgrading to version 2.11.0 I am getting a warning about empty >> strings as pathspecs while using 'patch' >> >> - Ran 'git add -p .' from the root of my git repository. >> >> - I was

[RFC/PATCH v3 07/16] external-odb: accept only blobs for now

2016-11-30 Thread Christian Couder
Signed-off-by: Christian Couder --- external-odb.c | 4 1 file changed, 4 insertions(+) diff --git a/external-odb.c b/external-odb.c index bb70fe3298..6dd7b2548b 100644 --- a/external-odb.c +++ b/external-odb.c @@ -133,6 +133,10 @@ int

[RFC/PATCH v3 11/16] lib-httpd: pass config file to start_httpd()

2016-11-30 Thread Christian Couder
This makes it possible to start an apache web server with different config files. This will be used in a later patch to pass a config file that makes apache store external objects. Signed-off-by: Christian Couder --- t/lib-httpd.sh | 6 -- 1 file changed, 4

[RFC/PATCH v3 03/16] t0400: use --batch-all-objects to get all objects

2016-11-30 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0400-external-odb.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh index 2b016173a0..fe85413725 100755 --- a/t/t0400-external-odb.sh +++

[RFC/PATCH v3 13/16] lib-httpd: add list.sh

2016-11-30 Thread Christian Couder
This cgi script can list Git objects that have been uploaded as files to an apache web server. This script can also retrieve the content of each of these files. This will help make apache work as an external object database. Signed-off-by: Christian Couder ---

[RFC/PATCH v3 10/16] Add t0410 to test external ODB transfer

2016-11-30 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0410-transfer-e-odb.sh | 136 ++ 1 file changed, 136 insertions(+) create mode 100755 t/t0410-transfer-e-odb.sh diff --git a/t/t0410-transfer-e-odb.sh b/t/t0410-transfer-e-odb.sh new

[RFC/PATCH v3 09/16] Add GIT_NO_EXTERNAL_ODB env variable

2016-11-30 Thread Christian Couder
Signed-off-by: Christian Couder --- cache.h| 9 + environment.c | 4 external-odb.c | 6 ++ sha1_file.c| 3 +++ 4 files changed, 22 insertions(+) diff --git a/cache.h b/cache.h index b419b9b7ce..503b618a1f 100644 --- a/cache.h +++ b/cache.h

Re: [PATCHv2 4/4] submodule: add embed-git-dir function

2016-11-30 Thread Stefan Beller
On Wed, Nov 30, 2016 at 1:39 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> git relocate-git-dir (--into-workingtree|--into-gitdir) \ > > I am not sure if you meant this as a submodule-specific subcommand > or more general helper.

CVSImport - spaces in CVS path

2016-11-30 Thread Yojoa
I'm in the process of moving an entire collection of cvs modules into git. I'm working in Mac Yosemite. Everything is working fine except for one thing. A couple of the CVS modules have spaces in the paths. Below is what my command line looks like. When the path has spaces I've tried putting it in

Re: [PATCHv2 4/4] submodule: add embed-git-dir function

2016-11-30 Thread Junio C Hamano
Stefan Beller writes: > git relocate-git-dir (--into-workingtree|--into-gitdir) \ I am not sure if you meant this as a submodule-specific subcommand or more general helper. "into-workingtree" suggests to me that it is submodule specific, so I'll base my response on that

Re: [PATCH v2] tag, branch, for-each-ref: add --ignore-case for sorting and filtering

2016-11-30 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > This option makes sorting ignore case, which is great when you have > branches named bug-12-do-something, Bug-12-do-some-more and > BUG-12-do-what and want to group them together. Sorting externally may > not be an option because we lose

Re: "git add -p ." raises an unexpected "warning: empty strings as pathspecs will be made invalid in upcoming releases. please use . instead if you meant to match all paths"

2016-11-30 Thread Kevin Daudt
On Wed, Nov 30, 2016 at 12:31:49PM -0800, Peter Urda wrote: > After upgrading to version 2.11.0 I am getting a warning about empty > strings as pathspecs while using 'patch' > > - Ran 'git add -p .' from the root of my git repository. > > - I was able to normally stage my changes, but was

Re: [PATCH] difftool.c: mark a file-local symbol with static

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 12:40:25PM -0800, Junio C Hamano wrote: > Ramsay Jones writes: > > > [I have fixed my config.mak file now, so I don't see the warning > > anymore! Having -Wno-format-zero-length in DEVELOPER_CFLAGS, or > > not, is a separate matter.] > > I

[RFC/PATCH v3 15/16] odb-helper: add 'store_plain_objects' to 'struct odb_helper'

2016-11-30 Thread Christian Couder
This adds a configuration option odb..plainObjects and the corresponding boolean variable called 'store_plain_objects' in 'struct odb_helper' to make it possible for external object databases to store object as plain objects instead of Git objects. The existing odb_helper_fetch_object() is

[RFC/PATCH v3 01/16] Add initial external odb support

2016-11-30 Thread Christian Couder
From: Jeff King Signed-off-by: Christian Couder --- Makefile| 2 + cache.h | 9 ++ external-odb.c | 115 +++ external-odb.h | 8 ++ odb-helper.c| 239

[RFC/PATCH v3 14/16] lib-httpd: add apache-e-odb.conf

2016-11-30 Thread Christian Couder
This is an apache config file to test external object databases. It uses the upload.sh and list.sh cgi that have been added previously to make apache store external objects. Signed-off-by: Christian Couder --- t/lib-httpd/apache-e-odb.conf | 214

[RFC/PATCH v3 16/16] t0420: add test with HTTP external odb

2016-11-30 Thread Christian Couder
This tests that an apache web server can be used as an external object database and store files in their native format instead of converting them to a Git object. Signed-off-by: Christian Couder --- t/t0420-transfer-http-e-odb.sh | 118

[RFC/PATCH v3 06/16] external odb: add write support

2016-11-30 Thread Christian Couder
Signed-off-by: Christian Couder --- external-odb.c | 15 +++ external-odb.h | 2 ++ odb-helper.c | 41 + odb-helper.h | 3 +++ sha1_file.c| 2 ++ 5 files changed, 59 insertions(+), 4 deletions(-) diff --git

[RFC/PATCH v3 00/16] Add initial experimental external ODB support

2016-11-30 Thread Christian Couder
Goal Git can store its objects only in the form of loose objects in separate files or packed objects in a pack file. To be able to better handle some kind of objects, for example big blobs, it would be nice if Git could store its objects in other object databases (ODB). To do that, this

[RFC/PATCH v3 05/16] t0400: add test for 'put' command

2016-11-30 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0400-external-odb.sh | 9 + 1 file changed, 9 insertions(+) diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh index 0f1bb97f38..6c6da5cf4f 100755 --- a/t/t0400-external-odb.sh +++ b/t/t0400-external-odb.sh @@

Grant.

2016-11-30 Thread web
Hello, A donation has been made out to you and your family from my foundation. For details, send an E-mail now to: castrat...@gmail.com Regards

Re: [PATCHv2 4/4] submodule: add embed-git-dir function

2016-11-30 Thread Junio C Hamano
Duy Nguyen writes: > On Wed, Nov 23, 2016 at 2:22 AM, Stefan Beller wrote: >> +/* >> + * Migrate the given submodule (and all its submodules recursively) from >> + * having its git directory within the working tree to the git dir nested >> + * in its

Re: [PATCHv2 4/4] submodule: add embed-git-dir function

2016-11-30 Thread Stefan Beller
On Wed, Nov 30, 2016 at 10:04 AM, Stefan Beller wrote: >> Submodules and worktrees seem to have many things in common. > > Yes. :) I moved the code to dir.{c,h} and renamed it to a more generic "move_gitdir", but then I am thinking further about how to align worktrees and

Re: [PATCHv2 4/4] submodule: add embed-git-dir function

2016-11-30 Thread Stefan Beller
On Wed, Nov 30, 2016 at 12:51 PM, Junio C Hamano wrote: > Duy Nguyen writes: > >> On Wed, Nov 23, 2016 at 2:22 AM, Stefan Beller wrote: >>> +/* >>> + * Migrate the given submodule (and all its submodules recursively) from >>> + * having

Re: [PATCH] difftool.c: mark a file-local symbol with static

2016-11-30 Thread Junio C Hamano
Ramsay Jones writes: > [I have fixed my config.mak file now, so I don't see the warning > anymore! Having -Wno-format-zero-length in DEVELOPER_CFLAGS, or > not, is a separate matter.] I suspect that 658df95a4a ("add DEVELOPER makefile knob to check for acknowledged

"git add -p ." raises an unexpected "warning: empty strings as pathspecs will be made invalid in upcoming releases. please use . instead if you meant to match all paths"

2016-11-30 Thread Peter Urda
After upgrading to version 2.11.0 I am getting a warning about empty strings as pathspecs while using 'patch' - Ran 'git add -p .' from the root of my git repository. - I was able to normally stage my changes, but was presented with a "warning: empty strings as pathspecs will be made invalid in

Re: [PATCH] difftool.c: mark a file-local symbol with static

2016-11-30 Thread Ramsay Jones
On 30/11/16 11:07, Johannes Schindelin wrote: > Hi Ramsay, > > On Tue, 29 Nov 2016, Ramsay Jones wrote: >> Also, due to a problem in my config.mak file on Linux (a commented >> out line that had a line continuation '\', gr!), gcc issued a >> warning, thus: >> >> builtin/difftool.c: In

Re: What's cooking in git.git (Nov 2016, #06; Mon, 28)

2016-11-30 Thread Brandon Williams
On 11/29, Jeff King wrote: > On Tue, Nov 29, 2016 at 01:37:59AM -0500, Jeff King wrote: > > > 2. Grep threads doing more complicated stuff that needs to take a > > lock. You might try building with -fsanitize=thread to see if it > > turns up anything. > > I tried this and it didn't

Re: gitconfig includes

2016-11-30 Thread Eli Barzilay
On Wed, Nov 30, 2016 at 2:06 PM, Jeff King wrote: > > I'm not sure what your script does exactly, but in general I think the > right thing for most scripts is _not_ to use a specific-file option > like --global. > > If the script is looking up a config value on behalf of a user, it

Re: gitconfig includes

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 01:54:35PM -0500, Eli Barzilay wrote: > I don't have any strong opinion, but FWIW, the use case I have for this > is as follows: I sync my ~/.gitconfig between my own machine and a work > machine. On the work machine though, I like people to have work emails, > and I

Re: gitconfig includes

2016-11-30 Thread Eli Barzilay
On Tue, Nov 29, 2016 at 4:50 PM, Junio C Hamano wrote: > Jeff King writes: > >> I think it's arguable whether "--global" should behave the same. > > I know you know this and I am writing this message for others. > > I admit that I wondered if "a single file"

Re: [PATCH v3 1/2] difftool: add a skeleton for the upcoming builtin

2016-11-30 Thread Junio C Hamano
Jakub Narębski writes: >> My original "create a file in libexec/git-core/" was simple, did the job >> reliably, and worked also for testing. >> >> It is a pity that you two gentlemen shot it down for being inelegant. And >> ever since, we try to find a solution that is as

Re: [PATCHv2 4/4] submodule: add embed-git-dir function

2016-11-30 Thread Stefan Beller
On Wed, Nov 30, 2016 at 3:14 AM, Duy Nguyen wrote: > On Wed, Nov 23, 2016 at 2:22 AM, Stefan Beller wrote: >> +/* >> + * Migrate the given submodule (and all its submodules recursively) from >> + * having its git directory within the working tree to the git

[PATCH v2 1/1] convert: git cherry-pick -Xrenormalize did not work

2016-11-30 Thread tboegi
From: Torsten Bögershausen Working with a repo that used to be all CRLF. At some point it was changed to all LF, with `text=auto` in .gitattributes. Trying to cherry-pick a commit from before the switchover fails: $ git cherry-pick -Xrenormalize fatal: CRLF would be replaced

Re: [PATCH v3 1/2] difftool: add a skeleton for the upcoming builtin

2016-11-30 Thread Jakub Narębski
Hello, W dniu 28.11.2016 o 18:34, Johannes Schindelin pisze: > My original "create a file in libexec/git-core/" was simple, did the job > reliably, and worked also for testing. > > It is a pity that you two gentlemen shot it down for being inelegant. And > ever since, we try to find a solution

Re: [PATCH v3 1/2] difftool: add a skeleton for the upcoming builtin

2016-11-30 Thread Jeff King
On Wed, Nov 30, 2016 at 01:30:47PM +0100, Johannes Schindelin wrote: > On Tue, 29 Nov 2016, Jeff King wrote: > > > On Tue, Nov 29, 2016 at 09:36:55PM +0100, Johannes Schindelin wrote: > > > > > So the suggestion by both you and Peff, to use an environment variable, > > > which is either global,

[PATCH v2] tag, branch, for-each-ref: add --ignore-case for sorting and filtering

2016-11-30 Thread Nguyễn Thái Ngọc Duy
This option makes sorting ignore case, which is great when you have branches named bug-12-do-something, Bug-12-do-some-more and BUG-12-do-what and want to group them together. Sorting externally may not be an option because we lose coloring and column layout from git-branch and git-tag. The same

Re: [PATCH v3 1/2] difftool: add a skeleton for the upcoming builtin

2016-11-30 Thread Johannes Schindelin
Hi Junio, On Tue, 29 Nov 2016, Junio C Hamano wrote: > Johannes Schindelin writes: > > > So the suggestion by both you and Peff, to use an environment variable, > > which is either global, or requires the user to set it manually per > > session, is simply not a good

Re: [PATCH v3 1/2] difftool: add a skeleton for the upcoming builtin

2016-11-30 Thread Johannes Schindelin
Hi Peff, On Tue, 29 Nov 2016, Jeff King wrote: > On Tue, Nov 29, 2016 at 09:36:55PM +0100, Johannes Schindelin wrote: > > > So the suggestion by both you and Peff, to use an environment variable, > > which is either global, or requires the user to set it manually per > > session, is simply not

Re: [PATCHv2 4/4] submodule: add embed-git-dir function

2016-11-30 Thread Duy Nguyen
On Wed, Nov 23, 2016 at 2:22 AM, Stefan Beller wrote: > +/* > + * Migrate the given submodule (and all its submodules recursively) from > + * having its git directory within the working tree to the git dir nested > + * in its superprojects git dir under modules/. > + */ >

Re: [PATCH] difftool.c: mark a file-local symbol with static

2016-11-30 Thread Johannes Schindelin
Hi Ramsay, On Tue, 29 Nov 2016, Ramsay Jones wrote: > If you need to re-roll your 'js/difftool-builtin' branch, could > you please squash this into the relevant patch. Fixed. Thanks! > Also, due to a problem in my config.mak file on Linux (a commented > out line that had a line continuation