Re: A couple of rebase --autosquash proposals

2013-12-09 Thread Chris Packham
On 09/12/13 19:51, Johannes Sixt wrote: Am 12/9/2013 3:23, schrieb Brett Randall: * fixup! or squash! on it's own would default to fixing-up the previous commit (or result of previous step of rebase if that was a squash/fixup). Why would you want that? To fixup the previous commit, just use

Re: A couple of rebase --autosquash proposals

2013-12-09 Thread Brett Randall
This aims to support code-review workflows of teams that prefer rebase over merge, when committing a new peer-reviewed feature. * Developer starts with commit OM, commits A. * During testing, the developer may make further changes, either through --amend or new commits, but either way, all work

Re: [PATCH v4 00/24] Index-v5

2013-12-09 Thread Thomas Gummerer
Thomas Gummerer t.gumme...@gmail.com writes: Hi, previous rounds (without api) are at $gmane/202752, $gmane/202923, $gmane/203088 and $gmane/203517, the previous rounds with api were at $gmane/229732, $gmane/230210 and $gmane/232488. Thanks to Duy for reviewing the the last round and

mv/rm submodules

2013-12-09 Thread George Papanikolaou
Hi list, I was just playing with the new features of 'git mv' in 1.8.5 and realized that both rm and mv don't change the .git/config file. Is that on purpuse? Also after mv you need to run 'submodule update' and I think this should be documented somewhere. Thanks.. -- George 'papanikge'

Setting file timestamps to commit time (git-checkout)

2013-12-09 Thread Dominik Vogt
Me and some colleagues work on gcc in lots of different branches. For each branch there is a separate build directory for each branch, e.g. build-a, build-b and build-c. Let's assume that all branches are identical at the moment. If a file in branch a is changed that triggers a complete rebuild

[PATCH] diff: don't read index when --no-index is given

2013-12-09 Thread Thomas Gummerer
git diff --no-index ... currently reads the index, during setup, when calling gitmodules_config(). In the usual case this gives us some performance drawbacks, but it's especially annoying if there is a broken index file. Avoid calling the unnecessary gitmodules_config() when the --no-index

Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

2013-12-09 Thread Karsten Blees
Am 08.12.2013 11:20, schrieb Thomas Rast: Karsten Blees karsten.bl...@gmail.com writes: Am 07.12.2013 23:23, schrieb Thomas Rast: Karsten Blees karsten.bl...@gmail.com writes: Extending 'struct hashmap_entry' with an int-sized member shouldn't waste memory on 64-bit systems. This is

Re: [PATCH] diff: don't read index when --no-index is given

2013-12-09 Thread Jonathan Nieder
Thomas Gummerer wrote: git diff --no-index ... currently reads the index, during setup, when calling gitmodules_config(). In the usual case this gives us some performance drawbacks, Makes sense. but it's especially annoying if there is a broken index file. Is this

Re: [PATCH] diff: don't read index when --no-index is given

2013-12-09 Thread Jens Lehmann
Am 09.12.2013 16:16, schrieb Jonathan Nieder: Thomas Gummerer wrote: git diff --no-index ... currently reads the index, during setup, when calling gitmodules_config(). In the usual case this gives us some performance drawbacks, Makes sense. Hmm, but this will disable the submodule

Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

2013-12-09 Thread Junio C Hamano
Karsten Blees karsten.bl...@gmail.com writes: Am 07.12.2013 00:52, schrieb Junio C Hamano: * kb/doc-exclude-directory-semantics (2013-11-07) 1 commit - gitignore.txt: clarify recursive nature of excluded directories Originally merged to 'next' on 2013-11-13 Kicked back to 'pu' to

Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

2013-12-09 Thread Junio C Hamano
Karsten Blees karsten.bl...@gmail.com writes: * kb/fast-hashmap (2013-11-18) 14 commits (merged to 'next' on 2013-12-06 at f90be3d) Damn, a day too late :-) I found these two glitches today...is a fixup patch OK or should I do a reroll (or separate patch on top)? A separate patch on top

Re: [PATCH] contrib/git-credential-gnome-keyring.c: small stylistic cleanups

2013-12-09 Thread Junio C Hamano
John Szakmeister j...@szakmeister.net writes: Signed-off-by: John Szakmeister j...@szakmeister.net --- The gnome-keyring credential backend had a number of coding style violations. I believe this fixes all of them. .../gnome-keyring/git-credential-gnome-keyring.c | 55

Re: [PATCH v2 0/3] rev-parse and --

2013-12-09 Thread Junio C Hamano
Jeff King p...@peff.net writes: Is it better for rev-parse to be more careful, and to behave more like the rest of git? Or is better to be historically compatible? One thing to note is that git rev-parse HEAD is slightly broken there already. Because git rev-parse $some_branch may do very

Re: [PATCH] diff: don't read index when --no-index is given

2013-12-09 Thread Jonathan Nieder
Jens Lehmann wrote: Am 09.12.2013 16:16, schrieb Jonathan Nieder: Thomas Gummerer wrote: git diff --no-index ... currently reads the index, during setup, when calling gitmodules_config(). In the usual case this gives us some performance drawbacks, Makes sense. Hmm, but this will disable

Re: [PATCH v2 0/3] rev-parse and --

2013-12-09 Thread Jonathan Nieder
Junio C Hamano wrote: So maybe we are doing a favor by calling out the problem; if they want a rev, they should be using --verify (or --). I tend to agree with the reasoning in the last sentence. Let's cook it for a while and see what happens. Isn't

Re: [PATCH] diff: don't read index when --no-index is given

2013-12-09 Thread Thomas Gummerer
Jonathan Nieder jrnie...@gmail.com writes: Thomas Gummerer wrote: git diff --no-index ... currently reads the index, during setup, when calling gitmodules_config(). In the usual case this gives us some performance drawbacks, Makes sense. but it's especially

Re: [PATCH v2 0/3] rev-parse and --

2013-12-09 Thread Jonathan Nieder
Jonathan Nieder wrote: Isn't this essentially breaking a contract To clarify, if there were some strong motivation --- e.g. if this were resolving some security problem --- then I would be all for breaking compatibility in this way. What's confusing to me is that I just don't see the

Re: [PATCH v2] diff: Add diff.orderfile configuration variable

2013-12-09 Thread Junio C Hamano
Samuel Bronson naes...@gmail.com writes: If somebody has diff.orderfile configuration that points at a custom ordering, and wants to send out a patch (or show a diff) with the standard order, how would the overriding command line look like? Would it be git diff -O/dev/null? It looks like

Re: [PATCH] i18n: move the trailing space out of translatable strings

2013-12-09 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: I've got this with Vietnamese translation $ git status HEAD được tách rời từorigin/master One does not need to understand Vietnamese to see that a space is missing before origin/master... Not really. Only if one guesses (or knows)

[PATCH] t5541: Improve push test

2013-12-09 Thread Torsten Bögershausen
The old log-line looked like this: + 9d498b0...8598732 master - master (forced update) And the new one like this: 9d498b0..8598732 master - master - Loosen the grep pattern by not demanding (forced update) - Improve the grep pattern and check the new SHA id Signed-off-by: Torsten

Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

2013-12-09 Thread Jonathan Nieder
Karsten Blees wrote: GCC supports __packed__ as of 2.3 (1992), so any other compilers that copied the __attribute__ feature probably won't complain. Alas, it looks like HP C doesn't support __packed__ (not that I care much about HP C):

Re: [RFC/PATCH] rebase: use reflog to find common base with upstream

2013-12-09 Thread Junio C Hamano
John Keeping j...@keeping.me.uk writes: Last time this came up [1], there was some discussion about moving the added block of code to affect upstreams given on the command line as well as when the upstream is discovered from the config. Having tried that, it has some more fallout on the test

Re: A couple of rebase --autosquash proposals

2013-12-09 Thread Junio C Hamano
Johannes Sixt j.s...@viscovery.net writes: Am 12/9/2013 3:23, schrieb Brett Randall: * fixup! or squash! on it's own would default to fixing-up the previous commit (or result of previous step of rebase if that was a squash/fixup). Why would you want that? To fixup the previous commit, just

Re: [PATCH] diff: don't read index when --no-index is given

2013-12-09 Thread Junio C Hamano
Thomas Gummerer t.gumme...@gmail.com writes: git diff --no-index ... currently reads the index, during setup, when calling gitmodules_config(). In the usual case this gives us some performance drawbacks, but it's especially annoying if there is a broken index file. Avoid calling the

Re: Setting file timestamps to commit time (git-checkout)

2013-12-09 Thread Junio C Hamano
Dominik Vogt v...@linux.vnet.ibm.com writes: Me and some colleagues work on gcc in lots of different branches. For each branch there is a separate build directory for each branch, e.g. build-a, build-b and build-c. Let's assume that all branches are identical at the moment. If a file in

Re: [RFC/PATCH] rebase: use reflog to find common base with upstream

2013-12-09 Thread John Keeping
On Mon, Dec 09, 2013 at 12:11:50PM -0800, Junio C Hamano wrote: John Keeping j...@keeping.me.uk writes: Last time this came up [1], there was some discussion about moving the added block of code to affect upstreams given on the command line as well as when the upstream is discovered from

[PATCH v2] diff: don't read index when --no-index is given

2013-12-09 Thread Thomas Gummerer
git diff --no-index ... currently reads the index, during setup, when calling gitmodules_config(). This results in worse performance when the index is not actually needed. This patch avoids calling gitmodules_config() when the --no-index option is given. The times for executing git diff

Re: [PATCH v2 0/3] rev-parse and --

2013-12-09 Thread Junio C Hamano
Jonathan Nieder jrnie...@gmail.com writes: Junio C Hamano wrote: So maybe we are doing a favor by calling out the problem; if they want a rev, they should be using --verify (or --). I tend to agree with the reasoning in the last sentence. Let's cook it

Re: Setting file timestamps to commit time (git-checkout)

2013-12-09 Thread Jonathan Nieder
Hi, Dominik Vogt wrote: Now, when I switch to one of the other branches, said file is not identical anymore and stamped with the _current_ time during checkout. Although branch b and c have not changed at all, they will now be

Re: [PATCH v2] diff: don't read index when --no-index is given

2013-12-09 Thread Torsten Bögershausen
On 2013-12-09 21.40, Thomas Gummerer wrote: +test_expect_success 'git diff --no-index with broken index' ' + cd repo + echo broken .git/index + git diff --no-index a ../non/git/a ^^ I'm confused: Does this work with the trailing ?

[RFC/WIP PATCH] implement reading of submodule .gitmodules configuration into cache

2013-12-09 Thread Heiko Voigt
This submodule configuration cache allows us to lazily read .gitmodules configurations by commit into a runtime cache which can then be used to easily lookup values from it. Currently only the values for path or name are stored but it can be extended for any value needed. This cache can be used

Re: [PATCH v2 0/3] rev-parse and --

2013-12-09 Thread Jonathan Nieder
Junio C Hamano wrote: I do not share the with --verify is better hence no problem reasoning. My not so much worth worrying about comes solely from a hunch that nobody has HEAD~3..HEAD in their working directory, That's what makes it a problem. This change makes it very easy to make a

Re: [PATCH v2] diff: don't read index when --no-index is given

2013-12-09 Thread Eric Sunshine
On Mon, Dec 9, 2013 at 3:40 PM, Thomas Gummerer t.gumme...@gmail.com wrote: git diff --no-index ... currently reads the index, during setup, when calling gitmodules_config(). This results in worse performance when the index is not actually needed. This patch avoids calling

Re: [PATCH v6 06/10] fast-export: add new --refspec option

2013-12-09 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: Junio C Hamano wrote: Junio C Hamano gits...@pobox.com writes: Felipe Contreras felipe.contre...@gmail.com writes: But it does not have to stay that way. In order to move things forward in that direction, this new configuration has to be

Re: [PATCH v8 1/6] transport-helper: mismerge fix

2013-12-09 Thread Junio C Hamano
Will re-queue these 6 for now. Thanks. -- 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

Re: [PATCH v2 0/3] rev-parse and --

2013-12-09 Thread Junio C Hamano
Jonathan Nieder jrnie...@gmail.com writes: But if we cook it for a while, I suspect that we will find more and more breakages of expectations in the existing scripts in and out of the tree; Alas, probably no, because nobody has HEAD~3..HEAD in their working directory. That's exactly the

Re: [PATCH v6 06/10] fast-export: add new --refspec option

2013-12-09 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: A refspec consists of one or more elements, each of which has right and left hand side separated by a colon, i.e. RHS:LHS, and 1) is determined by the RHS 2-a) is determined by the LHS 2-b) is determined by the correspondence between RHS-to-LHS.

Re: [PATCH] diff: don't read index when --no-index is given

2013-12-09 Thread Thomas Gummerer
[Sorry for not seeing this before sending out v2.] Junio C Hamano gits...@pobox.com writes: Thomas Gummerer t.gumme...@gmail.com writes: git diff --no-index ... currently reads the index, during setup, when calling gitmodules_config(). In the usual case this gives us some performance

Re: [PATCH v2] diff: don't read index when --no-index is given

2013-12-09 Thread Thomas Gummerer
Eric Sunshine sunsh...@sunshineco.com writes: On Mon, Dec 9, 2013 at 3:40 PM, Thomas Gummerer t.gumme...@gmail.com wrote: git diff --no-index ... currently reads the index, during setup, when calling gitmodules_config(). This results in worse performance when the index is not actually

Re: [PATCH] remote: fix status with branch...rebase=preserve

2013-12-09 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: Commit 66713ef (pull: allow pull to preserve merges when rebasing) didn't include an update so 'git remote status' parses branch.name.rebase=preserve correctly, let's do that. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com

Re: [PATCH] remote: fix status with branch...rebase=preserve

2013-12-09 Thread Junio C Hamano
Thanks, will queue. -- 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

Re: [PATCH 3/7] abspath: trivial style fix

2013-12-09 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- abspath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abspath.c b/abspath.c index e390994..8b3385a 100644 --- a/abspath.c +++ b/abspath.c @@ -143,7

Re: [PATCH 5/7] fetch: add missing documentation

2013-12-09 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: There's no mention of the 'origin' default, or the fact that the upstream tracking branch remote is used. Signed-off-by: Felipe Contreras felipe.contre...@gmail.com --- Documentation/git-fetch.txt | 3 +++ 1 file changed, 3 insertions(+)

Re: [PATCH v2 2/3] rev-parse: be more careful with munging arguments

2013-12-09 Thread Eric Sunshine
On Fri, Dec 6, 2013 at 5:07 PM, Jeff King p...@peff.net wrote: When rev-parse looks at whether an argument like foo..bar or foobar^@ is a difference or parent-shorthand, it internally munges the arguments so that it can pass the individual rev arguments to get_sha1. However, we do not

Re: Re: [RFC/WIP PATCH 0/4] less ignorance of submodules for ignore=all

2013-12-09 Thread Heiko Voigt
On Thu, Dec 05, 2013 at 09:51:31PM +0100, Jens Lehmann wrote: Am 05.12.2013 00:19, schrieb Heiko Voigt: On Wed, Dec 04, 2013 at 02:32:46PM -0800, Junio C Hamano wrote: This series tries to achieve the following goals for the submodule.name.ignore=all configuration or the

Re: Re: [RFC/WIP PATCH 3/4] teach add -f option for ignored submodules

2013-12-09 Thread Heiko Voigt
On Fri, Dec 06, 2013 at 03:10:31PM -0800, Junio C Hamano wrote: Heiko Voigt hvo...@hvoigt.net writes: diff --git a/builtin/add.c b/builtin/add.c index 2d0d2ef..d6cab7f 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -550,6 +569,7 @@ int cmd_add(int argc, const char **argv, const char

Re: [PATCH] t5541: Improve push test

2013-12-09 Thread Junio C Hamano
Torsten Bögershausen tbo...@web.de writes: The old log-line looked like this: + 9d498b0...8598732 master - master (forced update) And the new one like this: 9d498b0..8598732 master - master - Loosen the grep pattern by not demanding (forced update) Hmm, what is the reason for the

Re: [RFC/WIP PATCH 0/4] less ignorance of submodules for ignore=all

2013-12-09 Thread Junio C Hamano
Jens Lehmann jens.lehm...@web.de writes: I didn't check each site in detail, but I suspect each ignore option was added on purpose to fix a problem. That means we still need all (at least when diffing rev-index). Unfortunately that area is not covered well in our tests, I only got breakage

Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

2013-12-09 Thread Jeff King
On Sat, Dec 07, 2013 at 06:03:22PM +0100, Thomas Rast wrote: Junio C Hamano gits...@pobox.com writes: * jk/pack-bitmap (2013-11-18) 22 commits [...] Peff can decide if he wants to reroll with my nits or not; either way I'm all for moving it forward and aiming for one of the next releases.

Re: git-submodule.sh respects submodule.$name.update in .git/config but not .gitmodules

2013-12-09 Thread Heiko Voigt
On Fri, Dec 06, 2013 at 03:48:46PM +, Charlie Dyson wrote: gitmodules(5) states that submodule.$name.update should be defined in .gitmodules. However in cmd_update() in git-submodule.sh, git config is used with -f .gitmodules. Consequently this flag is only respected in .git/config

Re: Re: Publishing filtered branch repositories - workflow / recommendations?

2013-12-09 Thread Heiko Voigt
On Fri, Dec 06, 2013 at 02:40:15PM -0500, Martin Langhoff wrote: On Fri, Dec 6, 2013 at 3:48 AM, Jens Lehmann jens.lehm...@web.de wrote: Right you are, we need tutorials for the most prominent use cases. In the meantime, are there any hints? Emails on this list showing a current smart

[PATCH v2] rebase: use reflog to find common base with upstream

2013-12-09 Thread John Keeping
Commit 15a147e (rebase: use @{upstream} if no upstream specified, 2011-02-09) says: Make it default to 'git rebase @{upstream}'. That is also what 'git pull [--rebase]' defaults to, so it only makes sense that 'git rebase' defaults to the same thing. but that isn't

Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

2013-12-09 Thread Karsten Blees
Am 09.12.2013 21:08, schrieb Jonathan Nieder: Karsten Blees wrote: GCC supports __packed__ as of 2.3 (1992), so any other compilers that copied the __attribute__ feature probably won't complain. Alas, it looks like HP C doesn't support __packed__ (not that I care much about HP C):

Re: A couple of rebase --autosquash proposals

2013-12-09 Thread Brett Randall
I had not previously noticed commit --fixup, so that is something useful I have learned from this thread, thanks. The workflow here can be summarized as I have an initial commit and subsequent, review-generated commits, that I'd like to share on a review-branch with proper commit-log comments,

Re: [RFC/WIP PATCH] implement reading of submodule .gitmodules configuration into cache

2013-12-09 Thread Junio C Hamano
Heiko Voigt hvo...@hvoigt.net writes: This submodule configuration cache allows us to lazily read .gitmodules configurations by commit into a runtime cache which can then be used to easily lookup values from it. Currently only the values for path or name are stored but it can be extended for

Re: git-submodule.sh respects submodule.$name.update in .git/config but not .gitmodules

2013-12-09 Thread Junio C Hamano
Heiko Voigt hvo...@hvoigt.net writes: This notion has changed in a way that only the url (by that the name) should be copied on init. The default for everything else should come from .gitmodules or gits own default. I think you need to be a bit careful here. I do not think everything should

Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

2013-12-09 Thread Jonathan Nieder
Karsten Blees wrote: (Besides, __attribute__((aligned)) / __declspec(align) can only _increase_ the alignment, so aligned(1) would have no effect). Good catch. Googling some more, I believe the most protable way to achieve this via 'compiler settings' is #pragma pack(push) #pragma

Re: Publishing filtered branch repositories - workflow / recommendations?

2013-12-09 Thread Junio C Hamano
Heiko Voigt hvo...@hvoigt.net writes: On Fri, Dec 06, 2013 at 02:40:15PM -0500, Martin Langhoff wrote: On Fri, Dec 6, 2013 at 3:48 AM, Jens Lehmann jens.lehm...@web.de wrote: Right you are, we need tutorials for the most prominent use cases. In the meantime, are there any hints? Emails on

Re: [PATCH] pull: use merge-base --fork-point when appropriate

2013-12-09 Thread Jonathan Nieder
John Keeping wrote: Since commit d96855f (merge-base: teach --fork-point mode, 2013-10-23) we can replace a shell loop in git-pull with a single call to git-merge-base. So let's do so. Signed-off-by: John Keeping j...@keeping.me.uk --- git-pull.sh | 10 +- 1 file changed, 1

Refspec wildcards for remotes require trailing slash

2013-12-09 Thread Monte Goulding
Hi I came across this issue the other day while trying to optimise a fetch to a repo with release branches named release-X.X.X. I wanted to just fetch just those branches but because of the trailing slash rule I couldn't. The following StackOverflow post has details of the issue:

Re: [PATCH] Additional git-archive tests

2013-12-09 Thread Nick Townsend
On 5 Dec 2013, at 11:52, Junio C Hamano gits...@pobox.com wrote: Nick Townsend nick.towns...@mac.com writes: Interplay between paths specified in three ways now tested: * After a : in the tree-ish, * As a pathspec in the command, * By virtue of the current working directory Note that