Re: [PATCH] Makefile: fix default regex settings on Darwin

2013-05-10 Thread David Aguilar
On Fri, May 10, 2013 at 11:31 PM, Jonathan Nieder wrote: > David Aguilar wrote: > >> t0070-fundamental.sh fails on Mac OS X 10.8 by default. >> Fix it by using Git's regex library. > > Can you say more about the failure? What does > > ./t0070-fundamental.sh -v > > say? [..snip...] expec

Re: [PATCH] Makefile: fix default regex settings on Darwin

2013-05-10 Thread Jonathan Nieder
David Aguilar wrote: > t0070-fundamental.sh fails on Mac OS X 10.8 by default. > Fix it by using Git's regex library. Can you say more about the failure? What does ./t0070-fundamental.sh -v say? Curious, Jonathan -- To unsubscribe from this list: send the line "unsubscribe git" in the

Re: [PATCH] imap-send: eliminate HMAC warnings on OS X 10.8

2013-05-10 Thread Jonathan Nieder
David Aguilar wrote: > Mac OS X Mountain Lion warns that HMAC_Init() and friends are > deprecated. Use CommonCrypto's HMAC to eliminate the warnings. Makes sense, and if the #define trick stops working some day due to some conflicting macro in an openssl header some day, it would just break the

Re: [PATCH v2] cache.h: eliminate SHA-1 deprecation warnings on OS X 10.8

2013-05-10 Thread Jonathan Nieder
Hi, David Aguilar wrote: > Mac OS X Mountain Lion prints warnings when building git: > > warning: 'SHA1_Init' is deprecated > (declared at /usr/include/openssl/sha.h:121) > > Silence the warnings by using the Common Digest SHA-1 > functions for SHA1_Init(), SHA1_Update(), and SHA1_Fin

Re: [PATCH] gitk: add support for -G'regex' pickaxe variant

2013-05-10 Thread Jonathan Nieder
Paul Mackerras wrote: > I thought I had replied to this patch; maybe I only thought about it. > > Given that we already have a selector to choose between exact and > regexp matching, it seems more natural to use that rather than add a > new selector entry. Arguably the "IgnCase" option should be

Re: [PATCH 3/2] t5004: resurrect original empty tar archive test

2013-05-10 Thread Jonathan Nieder
Hi, René Scharfe wrote: > [Subject: t5004: resurrect original empty tar archive test] [...] > The different approaches test different things: The existing one is > for empty trees, for which we know the exact expected output and thus > we can simply check it without extracting; the new one is for

Re: [PATCH] gitk: add support for -G'regex' pickaxe variant

2013-05-10 Thread Paul Mackerras
On Tue, May 07, 2013 at 01:17:18PM -0400, Martin Langhoff wrote: > I just did git rebase origin/master for the umpteenth time, which > reminded me this nice patch is still pending. > > ping? I thought I had replied to this patch; maybe I only thought about it. Given that we already have a select

[PATCH] Makefile: fix default regex settings on Darwin

2013-05-10 Thread David Aguilar
t0070-fundamental.sh fails on Mac OS X 10.8 by default. Fix it by using Git's regex library. Signed-off-by: David Aguilar --- "make test" fails right now; this fixes it. t0070-fundamental is how far it got last time. It's still running now.. :-) Makefile | 1 + 1 file changed, 1 insertion(+) d

[PATCH] imap-send: eliminate HMAC warnings on OS X 10.8

2013-05-10 Thread David Aguilar
Mac OS X Mountain Lion warns that HMAC_Init() and friends are deprecated. Use CommonCrypto's HMAC to eliminate the warnings. Signed-off-by: David Aguilar --- This builds upon the patch I sent earlier, so technically it's 2/2 While researching these errors I found this: http://opensource.apple.

[PATCH v2] cache.h: eliminate SHA-1 deprecation warnings on OS X 10.8

2013-05-10 Thread David Aguilar
Mac OS X Mountain Lion prints warnings when building git: warning: 'SHA1_Init' is deprecated (declared at /usr/include/openssl/sha.h:121) Silence the warnings by using the Common Digest SHA-1 functions for SHA1_Init(), SHA1_Update(), and SHA1_Final(). Add a COMMON_DIGEST_SHA1 kno

[PATCH] cache.h: avoid deprecation warnings on OS X 10.8

2013-05-10 Thread David Aguilar
Mac OS X Mountain Lion prints warnings when building git: warning: 'SHA1_Init' is deprecated (declared at /usr/include/openssl/sha.h:121) Silence the warnings by using the Common Digest SHA-1 functions for SHA1_Init(), SHA1_Update(), and SHA1_Final(). Add a COMMON_DIGEST_SHA1 kno

Re: [PATCHv3 3/7] show: honor --textconv for blobs

2013-05-10 Thread Jeff King
On Fri, May 10, 2013 at 11:04:01AM -0700, Junio C Hamano wrote: > One thing to notice is that those accessing rev->pending before > calling prepare_revision_walk(), as opposed to those receiving > objects in rev->commits via get_revision(), are the only ones that > care about the context and wants

Re: write() _will_ fail on Mac OS X/XNU if nbytes > INT_MAX

2013-05-10 Thread Junio C Hamano
Filipe Cabecinhas writes: > It compiles cleanly and runs. I'm running the test suite anyway, but > don't expect any change from your latest patch. Heh, I do not think we did write(2) of that many bytes in our test suite ;-) Thanks. -- To unsubscribe from this list: send the line "unsubscribe gi

Re: write() _will_ fail on Mac OS X/XNU if nbytes > INT_MAX

2013-05-10 Thread Filipe Cabecinhas
Hi Junio, It compiles cleanly and runs. I'm running the test suite anyway, but don't expect any change from your latest patch. Thank you, Filipe F On Fri, May 10, 2013 at 4:13 PM, Filipe Cabecinhas wrote: > Hi Junio, > > Thanks for helping. Your text is correct and only diffs from my patc

Re: write() _will_ fail on Mac OS X/XNU if nbytes > INT_MAX

2013-05-10 Thread Filipe Cabecinhas
Hi Junio, Thanks for helping. Your text is correct and only diffs from my patch in the #define write(...) part, where I suppose you stripped the spaced in the arglist. Thank you, Filipe F On Fri, May 10, 2013 at 4:05 PM, Junio C Hamano wrote: > Filipe Cabecinhas writes: > >> Due to a bu

Re: write() _will_ fail on Mac OS X/XNU if nbytes > INT_MAX

2013-05-10 Thread Junio C Hamano
Junio C Hamano writes: > Also I have a small suggestion I'd like you to try on top of it, > which I'll be sending in a separate message. The first hunk is to match other Makefile knobs the builders can tweak with minimum documentation. As you hinted that there may be other platforms that may wa

Re: write() _will_ fail on Mac OS X/XNU if nbytes > INT_MAX

2013-05-10 Thread Junio C Hamano
Filipe Cabecinhas writes: > Due to a bug in the Darwin kernel, write() calls have a maximum size of > INT_MAX bytes. > > This patch introduces a new compat function: clipped_write > This function behaves the same as write() but will write, at most, INT_MAX > characters. > It may be necessary to i

Re: write() _will_ fail on Mac OS X/XNU if nbytes > INT_MAX

2013-05-10 Thread Filipe Cabecinhas
Due to a bug in the Darwin kernel, write() calls have a maximum size of INT_MAX bytes. This patch introduces a new compat function: clipped_write This function behaves the same as write() but will write, at most, INT_MAX characters. It may be necessary to include this function on Windows, too. Si

Re: Pending changes before 1.8.3-rc2?

2013-05-10 Thread Junio C Hamano
Felipe Contreras writes: > On Fri, May 10, 2013 at 1:38 PM, Junio C Hamano wrote: >> I should learn to start bugging you folks a lot earlier in the >> release cycle (except for Jiang, as localization strings will not be >> finalizable until very late), but anyway, we will soon be tagging >> the

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Junio C Hamano
Jonathan Nieder writes: > Ramkumar Ramachandra wrote: > >> Can we do better by not printing the -v >> output of the passing tests though? > > Not for my use. The output from comprable tests before is often > useful for comparison. Perhaps. But the output from passing

Re: Pending changes before 1.8.3-rc2?

2013-05-10 Thread Felipe Contreras
On Fri, May 10, 2013 at 1:38 PM, Junio C Hamano wrote: > I should learn to start bugging you folks a lot earlier in the > release cycle (except for Jiang, as localization strings will not be > finalizable until very late), but anyway, we will soon be tagging > the hopefully final -rc for the upcom

[PATCH v2 5/6] remote-hg: fix new branch creation

2013-05-10 Thread Felipe Contreras
When force_push is disabled, we need to turn the argument to True. Signed-off-by: Felipe Contreras --- contrib/remote-helpers/git-remote-hg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index c84a7

[PATCH v2 6/6] remote-hg: trivial reorganization

2013-05-10 Thread Felipe Contreras
We only need to get the remote dict once. Signed-off-by: Felipe Contreras --- contrib/remote-helpers/git-remote-hg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index 50ead38..40da4b0 100755 --

[PATCH v2 3/6] remote-hg: update bookmarks when pulling

2013-05-10 Thread Felipe Contreras
Signed-off-by: Felipe Contreras --- contrib/remote-helpers/git-remote-hg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index 14e7395..c84a7b4 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remot

[PATCH v2 4/6] remote-hg: test: be a little more quiet

2013-05-10 Thread Felipe Contreras
Signed-off-by: Felipe Contreras --- contrib/remote-helpers/test-hg.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh index 8de2aa7..f8d1f9e 100755 --- a/contrib/remote-helpers/test-hg.sh +++ b/contrib/

[PATCH v2 2/6] remote-hg: don't push fake 'master' bookmark

2013-05-10 Thread Felipe Contreras
We skip it locally, but not for the remote, so let's do so. Signed-off-by: Felipe Contreras --- contrib/remote-helpers/git-remote-hg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index 84901e9..1

[PATCH v2 1/6] remote-hg: disable forced push by default

2013-05-10 Thread Felipe Contreras
In certain situations we might end up pushing garbage revisions (e.g. in a rebase), and the patches to deal with that haven't been merged yet. So let's disable forced pushes by default. Signed-off-by: Felipe Contreras --- contrib/remote-helpers/git-remote-hg | 6 +++--- 1 file changed, 3 insert

[PATCH v2 0/6] remote-hg: fixes and cleanups

2013-05-10 Thread Felipe Contreras
Hi, A few fixes since last series, plus a few more patches. Simple no-brainers. Felipe Contreras (6): remote-hg: disable forced push by default remote-hg: don't push fake 'master' bookmark remote-hg: update bookmarks when pulling remote-hg: test: be a little more quiet remote-hg: fix ne

Re: [PATCH 2/2] transport-helper: fix remote helper namespace regression

2013-05-10 Thread Junio C Hamano
Felipe Contreras writes: > On Fri, May 10, 2013 at 3:28 PM, Junio C Hamano wrote: >> Felipe Contreras writes: >> >>> +test_expect_success 'push update refs failure' ' >>> + (cd local && >>> + git checkout update && >>> + echo "update fail" >>file && >>> + git commit -a -m "updat

Re: [PATCH 2/2] transport-helper: fix remote helper namespace regression

2013-05-10 Thread Felipe Contreras
On Fri, May 10, 2013 at 3:28 PM, Junio C Hamano wrote: > Felipe Contreras writes: > >> +test_expect_success 'push update refs failure' ' >> + (cd local && >> + git checkout update && >> + echo "update fail" >>file && >> + git commit -a -m "update fail" && >> + git rev-parse --

Re: [PATCH 2/2] transport-helper: fix remote helper namespace regression

2013-05-10 Thread Junio C Hamano
Felipe Contreras writes: > +test_expect_success 'push update refs failure' ' > + (cd local && > + git checkout update && > + echo "update fail" >>file && > + git commit -a -m "update fail" && > + git rev-parse --verify testgit/origin/heads/update >expect && > + GIT_REMOTE_

[PULL] git-svn updates for 1.8.3-rc2

2013-05-10 Thread Eric Wong
The following changes since commit 9b795193a6a7e963db62d9cd8e86752a40940520: Update draft release notes for 1.8.3 (2013-05-07 22:50:05 -0700) are available in the git repository at: git://git.bogomips.org/git-svn.git master for you to fetch changes up to a7b102302ad9495fb4eb5088ffcb09c44a40

[BUG] git checkout - breakage with rebase

2013-05-10 Thread Ramkumar Ramachandra
Hi, I often do: $ git checkout t-rebase-cleanup $ git push $ git checkout - $ git merge @{u} $ git checkout rebase.autostash $ git rebase master $ git checkout - # noop # Aargh! $ git checkout - # noop again Isn't this highly annoying? Ram -- To unsub

Outdated and broken online versions of user-manual.html

2013-05-10 Thread W. Trevor King
I went to reference some `rebase -i` discussion that landed in 3ca26e8 (Merge branch 'wk/user-manual', 2013-02-25), and I couldn't find a version of the manual online that contained the new content. There's a version on kernel.org [1], but that doesn't seem to have been updated since February. Th

[ITCH] push the HEAD I mean

2013-05-10 Thread Ramkumar Ramachandra
Hi, My push.default is current. I often end up doing: # on master $ git push # switch to another terminal $ git checkout rebase.autostash $ git rebase master # go back to previous terminal # push has failed This happens because push tries to push rebase.auto

Re: Git Merge 2013 Conference, Berlin

2013-05-10 Thread Scott Chacon
Hey, On Fri, May 10, 2013 at 9:10 PM, Sebastian Schuberth wrote: > On 23.01.2013 20:27, Scott Chacon wrote: > >> As you may remember, we did not have a GitTogether last year. Since I >> miss drinking and talking Git nerdiness with all of you, I'm going to >> try organizing some face time on a se

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Jonathan Nieder
Ramkumar Ramachandra wrote: > Can we do better by not printing the -v > output of the passing tests though? Not for my use. The output from comprable tests before is often useful for comparison. I wouldn't be against such an option for people who want it, though. Than

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Ramkumar Ramachandra
Jonathan Nieder wrote: > I use "-v -i" together quite frequently when debugging. I also use > "-v" automatically to debug test failures when tests are invoked > automatically on machines I do not have access to. Yeah, it makes sense on remote machines. I just found out about -i, and the -v -i co

Re: Git Merge 2013 Conference, Berlin

2013-05-10 Thread Sebastian Schuberth
On 23.01.2013 20:27, Scott Chacon wrote: As you may remember, we did not have a GitTogether last year. Since I miss drinking and talking Git nerdiness with all of you, I'm going to try organizing some face time on a semi-regular basis. I would like to try to do a small Git conference in the US

Re: [PATCH] git-gui: allow "\ No newline at end of file" for linewise staging

2013-05-10 Thread Tobias Preuss
I tested the patch as I am the same person that bothered about the behavior a while ago. Please merge. - Sorry for sending an HTML formatted mail before. On Thu, May 9, 2013 at 6:30 PM, Heiko Voigt wrote: > Counting of lines did not skip this line when generating the hunk > header. > > Signed-off

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Jonathan Nieder
Ramkumar Ramachandra wrote: > Quite frankly, I think -v is completely useless; who likes to scroll > through pages of terminal output? I use "-v -i" together quite frequently when debugging. I also use "-v" automatically to debug test failures when tests are invoked automatically on machines I d

Re: [RFC PATCH 2/3] mergetools/kdiff3: allow opting-out of auto-merges

2013-05-10 Thread David Aguilar
On Thu, May 9, 2013 at 10:41 PM, Charles Bailey wrote: > On Thu, May 09, 2013 at 03:17:30PM -0700, David Aguilar wrote: >> Generally, "mergetool..cmd" is not general enough since we've >> always special cased the base vs. no-base code paths and we run >> different commands depending on whether a b

Pending changes before 1.8.3-rc2?

2013-05-10 Thread Junio C Hamano
I should learn to start bugging you folks a lot earlier in the release cycle (except for Jiang, as localization strings will not be finalizable until very late), but anyway, we will soon be tagging the hopefully final -rc for the upcoming release. Please throw me a "pull this now!" if you have stu

Re: [PATCHv3 7/7] grep: honor --textconv for the case rev:path

2013-05-10 Thread Junio C Hamano
Junio C Hamano writes: > Michael J Gruber writes: > >> diff --git a/object.h b/object.h >> index 97d384b..695847d 100644 >> --- a/object.h >> +++ b/object.h >> @@ -13,6 +13,7 @@ struct object_array { >> struct object *item; >> const char *name; >> unsigned

[PATCHv3] CodingGuidelines: Documentation/*.txt are the sources

2013-05-10 Thread Dale Worley
People not familiar with AsciiDoc may not realize they are supposed to update *.txt files and not *.html/*.1 files when preparing patches to the project. Signed-off-by: Dale Worley --- Documentation/CodingGuidelines |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/D

Re: [PATCHv3 7/7] grep: honor --textconv for the case rev:path

2013-05-10 Thread Junio C Hamano
Michael J Gruber writes: > diff --git a/object.h b/object.h > index 97d384b..695847d 100644 > --- a/object.h > +++ b/object.h > @@ -13,6 +13,7 @@ struct object_array { > struct object *item; > const char *name; > unsigned mode; > + struct obje

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Ramkumar Ramachandra
Ramkumar Ramachandra wrote: > I just comment out the test_expect_success and close-quote, and put a > test_done after it. I would never advocate this GIT_TRACE thing > anywhere, because I want to put GIT_TRACE=1 (and possibly other > modifications) where I want it. Locally. On that note, I'd rea

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Ramkumar Ramachandra
Junio C Hamano wrote: > To me, most of them look like responses to valid issues, and that > holds true even for [PATCH 1/4]. Even though your response may have > been an incorrect one, the issue that triggered the response is > still valid---the setting of these variables without explanation > inv

Re: [PATCHv3 3/7] show: honor --textconv for blobs

2013-05-10 Thread Junio C Hamano
Jeff King writes: > On Fri, May 10, 2013 at 10:02:51AM -0700, Junio C Hamano wrote: > >> > Make "show" on blobs behave like "diff", i.e. honor "--textconv" by >> > default and "--no-textconv" when given. >> [...] >> So "show" on blobs does show the raw contents by default, but the >> user can exp

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Junio C Hamano
Ramkumar Ramachandra writes: > Junio C Hamano wrote: >> Perhaps because this is a test about "rebase" and a typical debugger >> does not want to trace other "git" things while debugging this? > > Okay, let's drop this 4-part series: it's too minor. Why throw the baby with bathwater? To me, most

Re: [PATCHv3 3/7] show: honor --textconv for blobs

2013-05-10 Thread Jeff King
On Fri, May 10, 2013 at 10:02:51AM -0700, Junio C Hamano wrote: > > Make "show" on blobs behave like "diff", i.e. honor "--textconv" by > > default and "--no-textconv" when given. > [...] > So "show" on blobs does show the raw contents by default, but the > user can explicitly ask to enable textco

Re: [PATCH 1/4] t3400 (rebase): don't set GIT_AUTHOR_{NAME,EMAIL}

2013-05-10 Thread Junio C Hamano
Eric Sunshine writes: > On Fri, May 10, 2013 at 10:29 AM, Ramkumar Ramachandra > wrote: >> test-lib.sh already sets a sane GIT_AUTHOR_{NAME,EMAIL} for all test >> scripts to use. Don't unnecessarily duplicate the work. >> >> Signed-off-by: Ramkumar Ramachandra >> --- >> t/t3400-rebase.sh | 4

Re: [PATCHv3 3/7] show: honor --textconv for blobs

2013-05-10 Thread Junio C Hamano
Michael J Gruber writes: > Currently, "diff" and "cat-file" for blobs honor "--textconv" options > (with the former defaulting to "--textconv" and the latter to > "--no-textconv") whereas "show" does not honor this option, even though > it takes diff options. > > Make "show" on blobs behave like

Re: [PATCH] Support running an arbitrary git action through checkout

2013-05-10 Thread Jeff King
On Fri, May 10, 2013 at 05:06:07PM +0200, Thomas Rast wrote: > + if (argc > 1 && !prefixcmp(argv[1], "--")) { > + const char *subcommand = argv[1] + 2; > + struct cmdnames main_cmds, other_cmds; > + > + memset(&main_cmds, 0, sizeof(main_cmds)); > +

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Ramkumar Ramachandra
Junio C Hamano wrote: > Perhaps because this is a test about "rebase" and a typical debugger > does not want to trace other "git" things while debugging this? Okay, let's drop this 4-part series: it's too minor. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a mes

Re: [PATCH 4/8] rebase: prepare to do generic housekeeping

2013-05-10 Thread Ramkumar Ramachandra
Junio C Hamano wrote: > So it is either (1) the added code is unreachable and unexercised at > this point in the series, or Yeah, it's (1). > Perhaps this should come a bit later in the series? When exactly? I picked up on your suggestion to separate out the preparation-for-$backend-to-return s

Re: [PATCH] Support running an arbitrary git action through checkout

2013-05-10 Thread Ramkumar Ramachandra
Thomas Rast wrote: > [1] correctly observed that we are already wrapping three different > operations under the git-checkout command. Incorrect. We merge_trees() and update refs. I see no reason to create artificial abstractions on top of this. > [...] Let's not talk about how gross your imple

Re: Avoiding broken Gitweb links and deleted objects

2013-05-10 Thread Junio C Hamano
Junio C Hamano writes: > Duy Nguyen writes: > >> On Fri, May 10, 2013 at 1:37 PM, Junio C Hamano wrote: >>> Johannes Sixt writes: >>> Imagine that a user runs "git rebase" on a history leading to commit >>> X to create an alternate, improved history that leads to commit Y. >>> What if we teach

Re: [PATCH] Support running an arbitrary git action through checkout

2013-05-10 Thread Junio C Hamano
Thomas Rast writes: > [1] correctly observed that we are already wrapping three different > operations under the git-checkout command. It is not April 1st, but perhaps it is in Berlin ;-) By the way I do not necessarily think that different operations "checking out specific paths" and "checking

Re: Re: [PATCH v3 4/5] teach config --blob option to parse config from database

2013-05-10 Thread Heiko Voigt
On Fri, May 10, 2013 at 12:30:39AM +0200, Jeff King wrote: > On Thu, May 09, 2013 at 06:20:18PM +0200, Heiko Voigt wrote: > > > +static int config_buf_fgetc(struct config_source *conf) > > +{ > > + if (conf->buf.pos < conf->buf.len && conf->buf.buf[conf->buf.pos]) > > + return conf->bu

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Junio C Hamano
Ramkumar Ramachandra writes: > Junio C Hamano wrote: >> Ramkumar Ramachandra writes: >> >>> A couple of tests execute 'git rebase' with GIT_TRACE set to 1, but >>> this trace output is not used anywhere. >> >> Isn't it shown in "t4300-*.sh -v" output to help the debugger? > > Um, but why the GIT

Re: [PATCH 4/8] rebase: prepare to do generic housekeeping

2013-05-10 Thread Junio C Hamano
Ramkumar Ramachandra writes: > On successful completion of a rebase in git-rebase--$backend.sh, the > $backend script cleans up on its own and exits. The cleanup routine > is however, independent of the $backend, and each $backend script > unnecessarily duplicates this work: > > rm -rf "$sta

Re: [PATCHv3 2/7] diff_opt: track whether flags have been set explicitly

2013-05-10 Thread Eric Sunshine
On Fri, May 10, 2013 at 11:10 AM, Michael J Gruber wrote: > From: Junio C Hamano > > The diff_opt infrastructure sets flags based on defaults and command > line options. Currently, it is impossible to detect whether a flag has > been set as a default or on explicit request. > > Amend the structur

Re: [PATCH 8/8] rebase: implement --[no-]autostash and rebase.autostash

2013-05-10 Thread Junio C Hamano
Ramkumar Ramachandra writes: > +finish_rebase () { > + if test -f "$state_dir/autostash" > + then > + stash_sha1=$(cat "$state_dir/autostash") > + if git stash apply $stash_sha1 2>&1 >/dev/null > + then > + echo "Applied autostash" >

Re: [PATCH 4/8] rebase: prepare to do generic housekeeping

2013-05-10 Thread Junio C Hamano
Eric Sunshine writes: > On Fri, May 10, 2013 at 10:26 AM, Ramkumar Ramachandra > wrote: >> On successful completion of a rebase in git-rebase--$backend.sh, the >> $backend script cleans up on its own and exits. The cleanup routine >> is however, independent of the $backend, and each $backend sc

[PATCHv3 7/7] grep: honor --textconv for the case rev:path

2013-05-10 Thread Michael J Gruber
Make "grep" honor the "--textconv" option also for the object case, i.e. when used with an argument "rev:path". Signed-off-by: Michael J Gruber --- builtin/grep.c | 11 ++- object.c | 26 -- object.h | 2 ++ t/t7008-grep-binary

[PATCHv3 6/7] grep: allow to use textconv filters

2013-05-10 Thread Michael J Gruber
From: Jeff King Recently and not so recently, we made sure that log/grep type operations use textconv filters when a userfacing diff would do the same: ef90ab6 (pickaxe: use textconv for -S counting, 2012-10-28) b1c2f57 (diff_grep: use textconv buffers for add/deleted files, 2012-10-28) 0508fe5

[PATCHv3 4/7] cat-file: do not die on --textconv without textconv filters

2013-05-10 Thread Michael J Gruber
When a command is supposed to use textconv filters (by default or with "--textconv") and none are configured then the blob is output without conversion; the only exception to this rule is "cat-file --textconv". Make it behave like the rest of textconv aware commands. Signed-off-by: Michael J Grub

[PATCHv3 5/7] t7008: demonstrate behavior of grep with textconv

2013-05-10 Thread Michael J Gruber
Currently, "git grep" does not honor any textconv filters, with nor without --textconv. Demonstrate this in the tests. The default is expected to remain unchanged. Signed-off-by: Michael J Gruber --- t/t7008-grep-binary.sh | 31 +++ 1 file changed, 31 insertions(+)

[PATCHv3 3/7] show: honor --textconv for blobs

2013-05-10 Thread Michael J Gruber
Currently, "diff" and "cat-file" for blobs honor "--textconv" options (with the former defaulting to "--textconv" and the latter to "--no-textconv") whereas "show" does not honor this option, even though it takes diff options. Make "show" on blobs behave like "diff", i.e. honor "--textconv" by def

[PATCHv3 2/7] diff_opt: track whether flags have been set explicitly

2013-05-10 Thread Michael J Gruber
From: Junio C Hamano The diff_opt infrastructure sets flags based on defaults and command line options. Currently, it is impossible to detect whether a flag has been set as a default or on explicit request. Amend the structure so that this detection is possible: * There is an extra "opt->touch

[PATCHv3 1/7] t4030: demonstrate behavior of show with textconv

2013-05-10 Thread Michael J Gruber
"git show " honors the --textconv option while "git show " does not. Demonstrate this in the test. Since the current behavior is supposed to stay as is, we expect the default for "git show " to remain --no-textconv. Signed-off-by: Michael J Gruber --- t/t4030-diff-textconv.sh | 24 +

[PATCHv3 0/7] textconv with grep and show

2013-05-10 Thread Michael J Gruber
This is the "Git Merge edition" of the textconv series. Great conference, the series struggles to match that. v3 keeps all defaults as they are (no textconv for blobs by default) and incorporates Junio's touched_flags patch. I do not need the callback but left it in. As for beeing able to choose

[PATCH] Support running an arbitrary git action through checkout

2013-05-10 Thread Thomas Rast
[1] correctly observed that we are already wrapping three different operations under the git-checkout command. To lead that design -- and the Koan -- to the obvious conclusion, some additional work is required. With this patch, you can say git checkout --reset foo # reset HEAD to foo gi

Re: [PATCH 1/4] t3400 (rebase): don't set GIT_AUTHOR_{NAME,EMAIL}

2013-05-10 Thread Ramkumar Ramachandra
Eric Sunshine wrote: > These values are intentionally bogus. Doesn't this change defeat the > purpose of 43c2325 (am: use get_author_ident_from_commit instead of > mailinfo when rebasing; 2010-06-16)? Oh, oops. I paid too little attention to this series. Thanks for catching. -- To unsubscribe fr

Re: [PATCH 1/4] t3400 (rebase): don't set GIT_AUTHOR_{NAME,EMAIL}

2013-05-10 Thread Eric Sunshine
On Fri, May 10, 2013 at 10:29 AM, Ramkumar Ramachandra wrote: > test-lib.sh already sets a sane GIT_AUTHOR_{NAME,EMAIL} for all test > scripts to use. Don't unnecessarily duplicate the work. > > Signed-off-by: Ramkumar Ramachandra > --- > t/t3400-rebase.sh | 4 > 1 file changed, 4 deletion

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Ramkumar Ramachandra
Junio C Hamano wrote: > Ramkumar Ramachandra writes: > >> A couple of tests execute 'git rebase' with GIT_TRACE set to 1, but >> this trace output is not used anywhere. > > Isn't it shown in "t4300-*.sh -v" output to help the debugger? Um, but why the GIT_TRACE in just these two places? Can't I

Re: [PATCH 1/8] am: suppress error output from a conditional

2013-05-10 Thread Junio C Hamano
Ramkumar Ramachandra writes: > In preparation for a later patch that creates $dotest/autostash in > git-rebase.sh before anything else happens, don't assume that the > presence of a $dotest directory implies the existence of the $next and > $last files. The check for the files is in a conditiona

Re: [PATCH 8/8] rebase: implement --[no-]autostash and rebase.autostash

2013-05-10 Thread Eric Sunshine
On Fri, May 10, 2013 at 10:26 AM, Ramkumar Ramachandra wrote: > diff --git a/t/t3420-rebase-autostash.sh b/t/t3420-rebase-autostash.sh > new file mode 100755 > index 000..8386998 > --- /dev/null > +++ b/t/t3420-rebase-autostash.sh > @@ -0,0 +1,148 @@ > +#!/bin/sh > +# > +# Copyright (c) 2013 R

Re: [PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Junio C Hamano
Ramkumar Ramachandra writes: > A couple of tests execute 'git rebase' with GIT_TRACE set to 1, but > this trace output is not used anywhere. Isn't it shown in "t4300-*.sh -v" output to help the debugger? > relevant to what we are testing. > > Signed-off-by: Ramkumar Ramachandra > --- > t/t340

Re: [PATCH 2/2] transport-helper: fix remote helper namespace regression

2013-05-10 Thread Junio C Hamano
Felipe Contreras writes: > Commit 664059f (transport-helper: update remote helper namespace) > updates the namespace when the push succeeds or not; we should do it > only when it succeeded. > > Signed-off-by: Felipe Contreras > --- > > The regression is in 'next' so far. Thanks. As you may wel

Re: [PATCH 4/8] rebase: prepare to do generic housekeeping

2013-05-10 Thread Eric Sunshine
On Fri, May 10, 2013 at 10:26 AM, Ramkumar Ramachandra wrote: > On successful completion of a rebase in git-rebase--$backend.sh, the > $backend script cleans up on its own and exits. The cleanup routine > is however, independent of the $backend, and each $backend script > unnecessarily duplicates

[PATCH 0/4] Trivial cleanups to t3400 (rebase)

2013-05-10 Thread Ramkumar Ramachandra
Hi, I was just going through t3400 when wondering where to put the tests for rebase.autostash. Here's a set of trivial patches. Thanks. Ramkumar Ramachandra (4): t3400 (rebase): don't set GIT_AUTHOR_{NAME,EMAIL} t3400 (rebase): downcase a couple of test titles t3400 (rebase): move lone st

[PATCH 2/4] t3400 (rebase): downcase a couple of test titles

2013-05-10 Thread Ramkumar Ramachandra
Otherwise they stick out like sore thumbs in the test output, where all the other titles begin with a lowercase letter. Signed-off-by: Ramkumar Ramachandra --- t/t3400-rebase.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t3400-rebase.sh b/t/t3400-rebase.sh index a7

[PATCH 4/4] t4300 (rebase): don't unnecessarily set GIT_TRACE

2013-05-10 Thread Ramkumar Ramachandra
A couple of tests execute 'git rebase' with GIT_TRACE set to 1, but this trace output is not used anywhere. Remove it, since it is not relevant to what we are testing. Signed-off-by: Ramkumar Ramachandra --- t/t3400-rebase.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 1/4] t3400 (rebase): don't set GIT_AUTHOR_{NAME,EMAIL}

2013-05-10 Thread Ramkumar Ramachandra
test-lib.sh already sets a sane GIT_AUTHOR_{NAME,EMAIL} for all test scripts to use. Don't unnecessarily duplicate the work. Signed-off-by: Ramkumar Ramachandra --- t/t3400-rebase.sh | 4 1 file changed, 4 deletions(-) diff --git a/t/t3400-rebase.sh b/t/t3400-rebase.sh index b58fa1a..a7ca

[PATCH 3/4] t3400 (rebase): move lone statement into a test

2013-05-10 Thread Ramkumar Ramachandra
'rm -f B' is a lone statement that isn't contained inside any test_expect_* block. Use test_when_finished to execute it after the preceding test has finished. Signed-off-by: Ramkumar Ramachandra --- t/t3400-rebase.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t3400-re

[PATCH 2/8] rebase -i: don't error out if $state_dir already exists

2013-05-10 Thread Ramkumar Ramachandra
In preparation for a later patch that will create $state_dir/autostash in git-rebase.sh before anything else can happen, change a `mkdir $state_dir` call to `mkdir -p $state_dir`. The change is safe, because this is not a test to detect an in-progress rebase (that is already done much earlier in g

[PATCH 4/8] rebase: prepare to do generic housekeeping

2013-05-10 Thread Ramkumar Ramachandra
On successful completion of a rebase in git-rebase--$backend.sh, the $backend script cleans up on its own and exits. The cleanup routine is however, independent of the $backend, and each $backend script unnecessarily duplicates this work: rm -rf "$state_dir" git gc --auto Prepare git-reb

[PATCH 7/8] rebase --merge: return control to caller, for housekeeping

2013-05-10 Thread Ramkumar Ramachandra
Return control to the caller git-rebase.sh to get these two tasks rm -fr "$dotest" git gc --auto done by it. Signed-off-by: Ramkumar Ramachandra --- git-rebase--merge.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/git-rebase--merge.sh b/git-rebase--merge.sh

[PATCH 6/8] rebase -i: return control to caller, for housekeeping

2013-05-10 Thread Ramkumar Ramachandra
Return control to the caller git-rebase.sh to get these two tasks rm -fr "$dotest" git gc --auto done by it. Signed-off-by: Ramkumar Ramachandra --- git-rebase--interactive.sh | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/git-rebase--interactive.sh b/git-

[PATCH 8/8] rebase: implement --[no-]autostash and rebase.autostash

2013-05-10 Thread Ramkumar Ramachandra
This new feature allows a rebase to be executed on a dirty worktree. It works by creating a temporary stash and storing it in $state_dir/autostash before the operation, and applying it after a successful operation. It will be removed along with the $state_dir if the operation is aborted. The feat

[PATCH 3/8] am: tighten a conditional that checks for $dotest

2013-05-10 Thread Ramkumar Ramachandra
We currently assume that, if a $dotest directory exists, an am had been called earlier. This assumption might get our conditional to match a stray $dotest directory created somewhere else, and result in failures down the line. So, tighten the conditional by additionally looking for the file $dotes

[PATCH 5/8] am: return control to caller, for housekeeping

2013-05-10 Thread Ramkumar Ramachandra
We only need to do these two tasks git gc --auto rm -fr "$dotest" ourselves if the script was invoked as a standalone program; when invoked with --rebasing (from git-rebase--am.sh), cascade control back to the ultimate caller git-rebase.sh to do this for us. Signed-off-by: Ramkumar Ramac

[PATCH 1/8] am: suppress error output from a conditional

2013-05-10 Thread Ramkumar Ramachandra
In preparation for a later patch that creates $dotest/autostash in git-rebase.sh before anything else happens, don't assume that the presence of a $dotest directory implies the existence of the $next and $last files. The check for the files is in a conditional anyway, but `cat` is executed on pote

[PATCH v2 0/8] rebase.autostash completed

2013-05-10 Thread Ramkumar Ramachandra
Hi, The feature is finished with documentation and tests in this iteration. I've written an extensive t3420 which proves that the feature works flawlessly. Further, I've made every attempt to actually explain what I'm doing: I've taken care to inspect all the return values. Overall, I'm elated

Re: [PATCH 1/4] remote-hg: don't push fake 'master' bookmark

2013-05-10 Thread Felipe Contreras
On Fri, May 10, 2013 at 5:17 AM, Felipe Contreras wrote: > --- a/contrib/remote-helpers/git-remote-hg > +++ b/contrib/remote-helpers/git-remote-hg > @@ -867,7 +867,7 @@ def do_export(parser): > > if bmark == 'master' and 'master' not in parser.repo._bookmarks: > # fake bookma

Conflict removed lines from the change set

2013-05-10 Thread nemo
It seems that on conflict git 1.8.1.2 removes lines below the preserved line. Before merging my master branch onto my staging branch I have this in the soon to be conflicting file: [... stuff ...] lib.printMenuBottom.10.20.typolink.additionalParams = &print=1&no_cache=1 [... stuff ...] The

[PATCH 2/2] transport-helper: fix remote helper namespace regression

2013-05-10 Thread Felipe Contreras
Commit 664059f (transport-helper: update remote helper namespace) updates the namespace when the push succeeds or not; we should do it only when it succeeded. Signed-off-by: Felipe Contreras --- The regression is in 'next' so far. git-remote-testgit.sh | 7 ++- t/t5801-remote-helpers.

[PATCH 1/2] test: remote-helper: add missing and

2013-05-10 Thread Felipe Contreras
Signed-off-by: Felipe Contreras --- t/t5801-remote-helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t5801-remote-helpers.sh b/t/t5801-remote-helpers.sh index 61479c3..352115c 100755 --- a/t/t5801-remote-helpers.sh +++ b/t/t5801-remote-helpers.sh @@ -175,7 +175,7 @@

  1   2   >