[PATCHv4 0/4] verify-commit: verify commit signatures

2014-06-27 Thread Michael J Gruber
(suggested) behavior. Michael J Gruber (4): gpg-interface: provide clear helper for struct signature_check gpg-interface: provide access to the payload verify-commit: scriptable commit signature verification t7510: test verify-commit Documentation/git-verify-commit.txt | 28

[PATCHv4 2/4] gpg-interface: provide access to the payload

2014-06-27 Thread Michael J Gruber
, and callers may wish to act on or display the commit object sans the signature. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- commit.c| 1 + gpg-interface.c | 2 ++ gpg-interface.h | 1 + 3 files changed, 4 insertions(+) diff --git a/commit.c b/commit.c index fb7897c..acb74b5

[PATCHv4 3/4] verify-commit: scriptable commit signature verification

2014-06-27 Thread Michael J Gruber
otherwise, has the gpg output on stderr and (optionally) the commit object on stdout, sans the signature, just like verify-tag does. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Documentation/git-verify-commit.txt | 28 +++ Makefile| 1

[PATCHv4 1/4] gpg-interface: provide clear helper for struct signature_check

2014-06-27 Thread Michael J Gruber
The struct has been growing members whose malloced memory needs to be freed. Do this with one helper function so that no malloced memory shall be left unfreed. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- builtin/merge.c | 5 + gpg-interface.c | 12 gpg

Re: [PATCHv4 4/4] t7510: test verify-commit

2014-06-27 Thread Michael J Gruber
On 27. Juni 2014 21:32:30 MESZ, Junio C Hamano gits...@pobox.com wrote: Michael J Gruber g...@drmicha.warpmail.net writes: sed -e s/seventh/7th forged/ raw forged1 git hash-object -w -t commit forged1 forged1.commit +! git verify-commit $(cat forged1.commit) test_must_fail

[PATCHv3 1/5] gpg-interface: provide clear helper for struct signature_check

2014-06-23 Thread Michael J Gruber
The struct has been growing members whose malloced memory needs to be freed. Do this with one helper function so that no malloced memory shall be left unfreed. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- builtin/merge.c | 5 + gpg-interface.c | 12 gpg

[PATCHv3 0/5] verify-commit: verify commit signatures

2014-06-23 Thread Michael J Gruber
to be changed (in order to treat similar cases similarly), the latter would need a deprecation for git-verify-tag. - I haven't looked yet at what happened over the weekend. Michael J Gruber (5): gpg-interface: provide clear helper for struct signature_check gpg-interface: provide access to the payload

[PATCHv3 2/5] gpg-interface: provide access to the payload

2014-06-23 Thread Michael J Gruber
, and callers may wish to act on or display the commit object sans the signature. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- commit.c| 1 + gpg-interface.c | 2 ++ gpg-interface.h | 1 + 3 files changed, 4 insertions(+) diff --git a/commit.c b/commit.c index 881be3b..d0ad7f0

[PATCHv3 5/5] t7510: test verify-commit

2014-06-23 Thread Michael J Gruber
. Additionally, test the actual output of git verify-commit and git show --show-signature and compare to git cat-file. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- t/t7510-signed-commit.sh | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/t/t7510

[PATCHv3 4/5] t7510: exit for loop with test result

2014-06-23 Thread Michael J Gruber
t7510 uses for loops in a subshell, which need to make sure that the test returns with the appropriate error code from within the loop. Restructure the loops as the usual chains with a single point of exit 1 at the end of the loop to make this clearer. Signed-off-by: Michael J Gruber g

[PATCHv3 3/5] verify-commit: scriptable commit signature verification

2014-06-23 Thread Michael J Gruber
otherwise, has the gpg output on stderr and (optionally) the commit object on stdout, sans the signature, just like verify-tag does. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Documentation/git-verify-commit.txt | 28 +++ Makefile| 1

Re: [PATCH 3/3] verify-commit: scriptable commit signature verification

2014-06-16 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 13.06.2014 19:06: Jeff King p...@peff.net writes: I realize this isn't really your itch to scratch. It's just that when I see a description like verify a commit, I wonder what exactly verify means. I think that is an important point. If a tool only

Re: Our merge bases sometimes suck

2014-06-13 Thread Michael J Gruber
Michael Haggerty venit, vidit, dixit 13.06.2014 00:12: I've been thinking a lot about merge bases lately and think I have discovered something interesting. tl;dr: When two branches have multiple merge bases, git merge-base $master $branch picks one merge base more or less

Re: [PATCH 2/3] gpg-interface: provide access to the payload

2014-06-13 Thread Michael J Gruber
Jeff King venit, vidit, dixit 13.06.2014 09:55: On Fri, Jun 06, 2014 at 04:15:27PM +0200, Michael J Gruber wrote: diff --git a/builtin/merge.c b/builtin/merge.c [...] +free(signature_check.payload); free(signature_check.gpg_output

Re: [PATCH 3/3] verify-commit: scriptable commit signature verification

2014-06-13 Thread Michael J Gruber
Jeff King venit, vidit, dixit 13.06.2014 10:02: On Fri, Jun 06, 2014 at 04:15:28PM +0200, Michael J Gruber wrote: Commit signatures can be verified using git show -s --show-signature or the %G? pretty format and parsing the output, which is well suited for user inspection

[PATCHv2 5/6] t7510: test verify-commit

2014-06-13 Thread Michael J Gruber
. Additionally, test the actual output of git verify-commit and git show --show-signature and compare to git cat-file. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- t/t7510-signed-commit.sh | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/t/t7510

[PATCHv2 1/6] pretty: free the gpg status buf

2014-06-13 Thread Michael J Gruber
4a868fd (pretty: parse the gpg status lines rather than the output, 2013-02-14) made the gpg status lines available to callers and made sure they freed the used space, but missed one spot. Free the status line buffer also in the remaining spot. Signed-off-by: Michael J Gruber g

[PATCHv2 0/6] verify-commit: verify commit signatures

2014-06-13 Thread Michael J Gruber
Patch1: unchanged Patch2: unchanged Patch3: as fixed in Junio's tree already (===) Patch4: minor test fix for t7510 Patch5: tests for the verify-commit Patch6: make all struct signature_check users employ the same clear helper Michael J Gruber (6): pretty: free the gpg status buf gpg

[PATCHv2 6/6] gpg-interface: provide clear helper for struct signature_check

2014-06-13 Thread Michael J Gruber
The struct has been growing members whose malloced memory needs to be freed. Do this with one helper function so that no malloced memory shall be left unfreed. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- builtin/merge.c | 6 +- builtin/verify-commit.c | 5

[PATCHv2 2/6] gpg-interface: provide access to the payload

2014-06-13 Thread Michael J Gruber
, and callers may wish to act on or display the commit object sans the signature. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- builtin/merge.c | 1 + commit.c| 1 + gpg-interface.h | 1 + pretty.c| 1 + 4 files changed, 4 insertions(+) diff --git a/builtin/merge.c b

[PATCHv2 3/6] verify-commit: scriptable commit signature verification

2014-06-13 Thread Michael J Gruber
otherwise, has the gpg output on stderr and (optionally) the commit object on stdout, sans the signature, just like verify-tag does. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Documentation/git-verify-commit.txt | 28 +++ Makefile| 1

[PATCHv2 4/6] t7510: exit for loop with test result

2014-06-13 Thread Michael J Gruber
When t7510 was introduced, the author made sure that a for loop in a subshell would return with the appropriate error code. Make sure this is true also the for the first line in each loop, which was missed. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- t/t7510-signed-commit.sh

Re: [PATCHv2 3/6] verify-commit: scriptable commit signature verification

2014-06-13 Thread Michael J Gruber
Jeff King venit, vidit, dixit 13.06.2014 13:19: On Fri, Jun 13, 2014 at 12:42:45PM +0200, Michael J Gruber wrote: + +free(signature_check.gpg_output); +free(signature_check.gpg_status); +free(signature_check.signer); +free(signature_check.key); +return

Re: [PATCHv2 5/6] t7510: test verify-commit

2014-06-13 Thread Michael J Gruber
Jeff King venit, vidit, dixit 13.06.2014 13:51: On Fri, Jun 13, 2014 at 12:42:47PM +0200, Michael J Gruber wrote: test_expect_success GPG 'detect fudged signature' ' git cat-file commit master raw sed -e s/seventh/7th forged/ raw forged1 git hash-object -w -t commit

Re: [PATCHv2 4/6] t7510: exit for loop with test result

2014-06-13 Thread Michael J Gruber
Jeff King venit, vidit, dixit 13.06.2014 13:46: On Fri, Jun 13, 2014 at 12:42:46PM +0200, Michael J Gruber wrote: When t7510 was introduced, the author made sure that a for loop in a subshell would return with the appropriate error code. Make sure this is true also the for the first line

Re: [PATCHv2 3/6] verify-commit: scriptable commit signature verification

2014-06-13 Thread Michael J Gruber
Jeff King venit, vidit, dixit 13.06.2014 13:50: On Fri, Jun 13, 2014 at 01:45:58PM +0200, Michael J Gruber wrote: I sneekily fix this in 6/6... I thought 3/6 is on next already, too late for a real v2. Otherwise I would put 6/6 before everything else. Ah, yeah, I assumed we were still re

Re: [PATCHv2 4/6] t7510: exit for loop with test result

2014-06-13 Thread Michael J Gruber
Michael J Gruber venit, vidit, dixit 13.06.2014 14:04: Jeff King venit, vidit, dixit 13.06.2014 13:46: On Fri, Jun 13, 2014 at 12:42:46PM +0200, Michael J Gruber wrote: When t7510 was introduced, the author made sure that a for loop in a subshell would return with the appropriate error code

Re: [PATCHv2 4/6] t7510: exit for loop with test result

2014-06-13 Thread Michael J Gruber
Michael J Gruber venit, vidit, dixit 13.06.2014 14:22: Michael J Gruber venit, vidit, dixit 13.06.2014 14:04: Jeff King venit, vidit, dixit 13.06.2014 13:46: On Fri, Jun 13, 2014 at 12:42:46PM +0200, Michael J Gruber wrote: When t7510 was introduced, the author made sure that a for loop

Re: [PATCHv2 4/6] t7510: exit for loop with test result

2014-06-13 Thread Michael J Gruber
Johannes Sixt venit, vidit, dixit 13.06.2014 14:54: Am 6/13/2014 14:33, schrieb Michael J Gruber: with this loop, sorry: for X in true false; do for Y in false true; do ($X $Y || exit 1) done echo $X/last inner $Y: $? done gives true/last inner true: 0

Re: [PATCHv2 4/6] t7510: exit for loop with test result

2014-06-13 Thread Michael J Gruber
Johannes Sixt venit, vidit, dixit 13.06.2014 15:21: Am 6/13/2014 15:06, schrieb Michael J Gruber: Johannes Sixt venit, vidit, dixit 13.06.2014 14:54: Am 6/13/2014 14:33, schrieb Michael J Gruber: with this loop, sorry: for X in true false; do for Y in false true; do ($X

Re: [PATCH 3/3] verify-commit: scriptable commit signature verification

2014-06-11 Thread Michael J Gruber
On 6. Juni 2014 16:15:28 MESZ, Michael J Gruber g...@drmicha.warpmail.net wrote: Commit signatures can be verified using git show -s --show-signature or the %G? pretty format and parsing the output, which is well suited for user inspection, but not for scripting. Provide a command verify

[PATCH 1/3] pretty: free the gpg status buf

2014-06-06 Thread Michael J Gruber
4a868fd (pretty: parse the gpg status lines rather than the output, 2013-02-14) made the gpg status lines available to callers and made sure they freed the used space, but missed one spot. Free the status line buffer also in the remaining spot. Signed-off-by: Michael J Gruber g

[PATCH 0/3] verify-commit: verify commit signatures

2014-06-06 Thread Michael J Gruber
agree upon. Michael J Gruber (3): pretty: free the gpg status buf gpg-interface: provide access to the payload verify-commit: scriptable commit signature verification Documentation/git-verify-commit.txt | 28 +++ Makefile| 1 + builtin.h

[PATCH 3/3] verify-commit: scriptable commit signature verification

2014-06-06 Thread Michael J Gruber
otherwise, has the gpg output on stderr and (optionally) the commit object on stdout, sans the signature, just like verify-tag does. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Documentation/git-verify-commit.txt | 28 +++ Makefile| 1

[PATCH 2/3] gpg-interface: provide access to the payload

2014-06-06 Thread Michael J Gruber
, and callers may wish to act on or display the commit object sans the signature. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- builtin/merge.c | 1 + commit.c| 1 + gpg-interface.h | 1 + pretty.c| 1 + 4 files changed, 4 insertions(+) diff --git a/builtin/merge.c b

[PATCH] release notes: typo fixes

2014-02-13 Thread Michael J Gruber
Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Just a few things I spotted while trying to keep myself informed :) Documentation/RelNotes/1.9.txt | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Documentation/RelNotes/1.9

Re: [PATCH jk/remove-deprecated] stop installing git-tar-tree link

2013-12-04 Thread Michael J Gruber
Jonathan Nieder venit, vidit, dixit 03.12.2013 00:37: When the built-in git tar-tree command (a thin wrapper around git archive) was removed in 925ceccf (tar-tree: remove deprecated command, 2013-11-10), the build continued to install a non-functioning git-tar-tree command in gitexecdir by

Re: git svn clone with funky tags layout

2013-11-06 Thread Michael J Gruber
Jim Garrison venit, vidit, dixit 05.11.2013 18:16: I'm doing a one-time migration of an svn project. For historical reasons our repo layout is weird: trunk/reporting/reporting_app tags/something_else tags/reporting_app-2.3.45 tags/reporting_app-2.4.46

Re: What's cooking in git.git (May 2013, #05; Mon, 20)

2013-05-23 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 22.05.2013 18:36: Michael J Gruber g...@drmicha.warpmail.net writes: * mg/more-textconv (2013-05-10) 7 commits - grep: honor --textconv for the case rev:path - grep: allow to use textconv filters - t7008: demonstrate behavior of grep with textconv

Re: What's cooking in git.git (May 2013, #05; Mon, 20)

2013-05-23 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 23.05.2013 16:40: Michael J Gruber g...@drmicha.warpmail.net writes: Didn't you have concerns about storing the context in the object struct? I can't quite judge how much of an issue this can be for fsck and such. I don't want to increase the memory

Re: What's cooking in git.git (May 2013, #05; Mon, 20)

2013-05-22 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 21.05.2013 02:15: Here are the topics that have been cooking. Commits prefixed with '-' are only in 'pu' (proposed updates) while commits prefixed with '+' are in 'next'. The final version of 1.8.3 is expected to be tagged late this week. While applying a

Re: What's cooking in git.git (May 2013, #05; Mon, 20)

2013-05-22 Thread Michael J Gruber
BTW, I love our rev-list machinery: log --graph --abbrev-commit --pretty=oneline --decorate --cherry-mark --left-right mjg/grep-textconv...origin/next 701cdb7 Merge branch 'mg/more-textconv' into next |\ | = afa15f3 (gitster/mg/more-textconv) grep: honor --textconv for the case rev:path | =

Re: [PATCH] branch: add show-tracking option

2013-05-16 Thread Michael J Gruber
Felipe Contreras venit, vidit, dixit 16.05.2013 09:48: Showing the tracking information for all the branches takes significant amount of time. The user might not want that. The --no-show-tracking option allows that. I really like the idea of allowing that - not just because I've suggested so

Re: [PATCH] branch: add show-tracking option

2013-05-16 Thread Michael J Gruber
Felipe Contreras venit, vidit, dixit 16.05.2013 10:09: On Thu, May 16, 2013 at 3:00 AM, Michael J Gruber g...@drmicha.warpmail.net wrote: Felipe Contreras venit, vidit, dixit 16.05.2013 09:48: Showing the tracking information for all the branches takes significant amount of time. The user

Re: [PATCH] branch: add show-tracking option

2013-05-16 Thread Michael J Gruber
Duy Nguyen venit, vidit, dixit 16.05.2013 10:23: On Thu, May 16, 2013 at 3:00 PM, Michael J Gruber g...@drmicha.warpmail.net wrote: I feel, though, that we're really exploding our option and config realm. For git branch in list mode, we are already able to stack -v, i.e. -v and -vv do

Re: [RFC/PATCH 0/2] merge-base: add --merge-child option

2013-05-13 Thread Michael J Gruber
Kevin Bracey venit, vidit, dixit 13.05.2013 16:26: On 13/05/2013 01:22, Junio C Hamano wrote: Kevin Bracey ke...@bracey.fi writes: git log --ancestry-path --left-right E...F --not $(git merge-base --all E F) which looks like we're having to repeat ourselves because it's not paying

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

2013-05-13 Thread Michael J Gruber
Jeff King venit, vidit, dixit 13.05.2013 13:55: On Sun, May 12, 2013 at 10:01:38PM -0700, Junio C Hamano wrote: Michael J Gruber g...@drmicha.warpmail.net writes: Adding to that: Somehow I still feel I should introduce a new attribute show (or a better name) similar to diff so that you

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

2013-05-12 Thread Michael J Gruber
Adding to that: Somehow I still feel I should introduce a new attribute show (or a better name) similar to diff so that you can specifiy a diff driver to use for showing a blob (or grepping it), which may or may not be the same you use for diff. This would be a much more fine-grained and

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

2013-05-12 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 11.05.2013 19:36: Michael J Gruber g...@drmicha.warpmail.net writes: + if (!DIFF_OPT_TOUCHED(rev-diffopt, ALLOW_TEXTCONV) || + !DIFF_OPT_TST(rev-diffopt, ALLOW_TEXTCONV)) + return stream_blob_to_fd(1, sha1, NULL, 0); It is surprising

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

2013-05-11 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 10.05.2013 19:02: Michael J Gruber g...@drmicha.warpmail.net 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

[PATCHv3 0/7] textconv with grep and show

2013-05-10 Thread Michael J Gruber
(1): grep: allow to use textconv filters Junio C Hamano (1): diff_opt: track whether flags have been set explicitly Michael J Gruber (5): t4030: demonstrate behavior of show with textconv show: honor --textconv for blobs cat-file: do not die on --textconv without textconv filters t7008

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

2013-05-10 Thread Michael J Gruber
git show commit honors the --textconv option while git show blob does not. Demonstrate this in the test. Since the current behavior is supposed to stay as is, we expect the default for git show blob to remain --no-textconv. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- t/t4030

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

2013-05-10 Thread Michael J Gruber
inspect touched_flags and update opt-flags appropriately, before the remainder of the diffcore machinery is set up, taking the opt-flags value into account. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Documentation/technical/api-diff.txt | 10 +- builtin/log.c

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

2013-05-10 Thread Michael J Gruber
and --no-textconv when given. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- builtin/log.c| 25 ++--- t/t4030-diff-textconv.sh | 6 +++--- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/builtin/log.c b/builtin/log.c index f19d779..dd3f108 100644

[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 g...@drmicha.warpmail.net --- t/t7008-grep-binary.sh | 31 +++ 1 file

[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 Gruber

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

2013-05-10 Thread Michael J Gruber
use any configured textconv filters for grepping and output purposes. It is off by default. Signed-off-by: Jeff King p...@peff.net Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Documentation/git-grep.txt | 9 +++- builtin/grep.c | 2 + grep.c | 100

[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 g...@drmicha.warpmail.net --- builtin/grep.c | 11 ++- object.c | 26 -- object.h | 2

Re: [PATCHv2 7/7] git grep: honor textconv by default

2013-04-29 Thread Michael J Gruber
Matthieu Moy venit, vidit, dixit 26.04.2013 15:23: Michael J Gruber g...@drmicha.warpmail.net writes: BTW, textconv does not have to be slow - just use textconv-cache. Right, thanks for reminding me about this, I had forgotten its existance ;-). I'm still looking for a way to at least

Re: Itches with the current rev spec

2013-04-29 Thread Michael J Gruber
Matthieu Moy venit, vidit, dixit 25.04.2013 10:22: Ramkumar Ramachandra artag...@gmail.com writes: Hi, So, I have three serious itches that would be nice to address: 1. git reset --hard HEAD~1/ git show HEAD~1 is a very common idiom that's unnecessarily cumbersome to type out. We can

[PATCH] clean: Introduce -z for machine readable output

2013-04-29 Thread Michael J Gruber
-z makes clean output only the names of paths which are or would be deleted, and separates them with \0. Use as xargs -0 -a (git clean -nz [-d]) rm -ri, e.g., as a quick git clean -i. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Here's an alternative approach to that problem

Re: [PATCH] t5801: properly test the test shell

2013-04-26 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 25.04.2013 19:12: Junio C Hamano gits...@pobox.com writes: Michael J Gruber g...@drmicha.warpmail.net writes: fc407f9 (Add new simplified git-remote-testgit, 2012-11-28) introduced a test which was meant to skip the test unless the test shell is bash

Re: [PATCHv2 7/7] git grep: honor textconv by default

2013-04-26 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 24.04.2013 20:55: Matthieu Moy matthieu@grenoble-inp.fr writes: Grepping through the binary, on the other hand, can very well make sense, like: $ git grep foo file.txt: some instance of foo binary file bar.bin matches BTW, textconv does not have to

[PATCH] t5801: properly test the test shell

2013-04-25 Thread Michael J Gruber
test whether the test shell is bash. An even better alternative would be to make the test POSIX compliant, of course. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- t/t5801-remote-helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t5801-remote

Re: [PATCH] t5801: properly test the test shell

2013-04-25 Thread Michael J Gruber
Johannes Sixt venit, vidit, dixit 25.04.2013 12:59: Am 4/25/2013 12:09, schrieb Michael J Gruber: fc407f9 (Add new simplified git-remote-testgit, 2012-11-28) introduced a test which was meant to skip the test unless the test shell is bash. Unfortunately, it tests for the availability of bash

Re: [PATCH] Add .gitconfig variable commit.gpg-sign

2013-04-24 Thread Michael J Gruber
Sebastian Götte venit, vidit, dixit 24.04.2013 10:53: On 04/23/2013 09:56 PM, Joel Jacobson wrote: But stepping back a bit, I have a suspicion that your upstream project _only_ cares about what you feed them (either by pushing your work yourself to them, or telling them to pull from your

Re: [PATCHv2 7/7] git grep: honor textconv by default

2013-04-24 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 23.04.2013 17:20: Michael J Gruber g...@drmicha.warpmail.net writes: Currently, git grep does not honor textconv settings by default. Make it honor them by default just like git log --grep does. git log --grep looks for strings in the log message which

Re: [PATCHv2 4/7] t7008: demonstrate behavior of grep with textconv

2013-04-24 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 23.04.2013 17:16: Michael J Gruber g...@drmicha.warpmail.net writes: Currently, git grep does not honor any textconv filters. Demonstrate this in the tests. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- t/t7008-grep-binary.sh | 23

Re: [PATCHv2 2/7] show: obey --textconv for blobs

2013-04-24 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 23.04.2013 17:14: Michael J Gruber g...@drmicha.warpmail.net writes: Subject: Re: [PATCHv2 2/7] show: obey --textconv for blobs s/obey/honor/; I missed that one, thanks. Currently, diff and cat-file for blobs honor --textconv options (with the former

Re: [PATCH 2/6] show: obey --textconv for blobs

2013-04-23 Thread Michael J Gruber
Matthieu Moy venit, vidit, dixit 22.04.2013 17:54: Jeremy Rosen jeremy.ro...@openwide.fr writes: some features detect if they are piping to a terminal... couldn't we do something like that ? That's OK for convenience features like colors or so, but that would be really, really unexpected

Re: [PATCH] Add .gitconfig variable commit.gpg-sign

2013-04-23 Thread Michael J Gruber
Joel Jacobson venit, vidit, dixit 23.04.2013 02:00: On Tue, Apr 23, 2013 at 12:43 AM, Junio C Hamano gits...@pobox.com wrote: No docs? No tests? Maybe simply adding this text to git-commit.txt, The default can be changed by the 'commit.gpg-sign' configuration variable (see

[PATCHv2 0/7] grep with textconv

2013-04-23 Thread Michael J Gruber
Here's a reroll, with the following changes: * Use honor for obey. * Fixed the issue with --textconv and non-blobs. * Restructured tests as per Jeff's preference. * Added 7/ which flips the default for git grep to textconv. Jeff King (1): grep: allow to use textconv filters Michael J

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

2013-04-23 Thread Michael J Gruber
git show commit honors the textconv setting while git show blob does not. Demonstrate this in the test. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- t/t4030-diff-textconv.sh | 12 1 file changed, 12 insertions(+) diff --git a/t/t4030-diff-textconv.sh b/t/t4030-diff

[PATCHv2 2/7] show: obey --textconv for blobs

2013-04-23 Thread Michael J Gruber
and --no-textconv when given. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- builtin/log.c| 24 +--- t/t4030-diff-textconv.sh | 8 +++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/builtin/log.c b/builtin/log.c index 5f3ed77..fe0275e

[PATCHv2 4/7] t7008: demonstrate behavior of grep with textconv

2013-04-23 Thread Michael J Gruber
Currently, git grep does not honor any textconv filters. Demonstrate this in the tests. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- t/t7008-grep-binary.sh | 23 +++ 1 file changed, 23 insertions(+) diff --git a/t/t7008-grep-binary.sh b/t/t7008-grep

[PATCHv2 3/7] cat-file: do not die on --textconv without textconv filters

2013-04-23 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 Gruber

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

2013-04-23 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 g...@drmicha.warpmail.net --- builtin/grep.c | 11 ++- object.c | 26 -- object.h | 2

[PATCHv2 7/7] git grep: honor textconv by default

2013-04-23 Thread Michael J Gruber
Currently, git grep does not honor textconv settings by default. Make it honor them by default just like git log --grep does. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Documentation/git-grep.txt | 2 +- grep.c | 2 ++ t/t7008-grep-binary.sh | 4 ++-- 3

[PATCHv2 5/7] grep: allow to use textconv filters

2013-04-23 Thread Michael J Gruber
for grepping and output purposes. It is off by default. Signed-off-by: Jeff King p...@peff.net Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Documentation/git-grep.txt | 9 +++- builtin/grep.c | 2 + grep.c | 100

Re: [PATCH 2/6] show: obey --textconv for blobs

2013-04-22 Thread Michael J Gruber
Jeff King venit, vidit, dixit 21.04.2013 05:37: On Sat, Apr 20, 2013 at 03:38:53PM +0200, Michael J Gruber wrote: Wait, this does the opposite of the last patch. If we do want to do this, shouldn't the last one have been an expect_failure? The last patch just documents the status quo, which

Re: [PATCH 3/6] cat-file: do not die on --textconv without textconv filters

2013-04-20 Thread Michael J Gruber
Jeff King venit, vidit, dixit 20.04.2013 06:17: On Fri, Apr 19, 2013 at 06:44:46PM +0200, Michael J Gruber wrote: -die(git cat-file --textconv: unable to run textconv on %s, -obj_name); -break; +if (textconv_object

Re: [PATCH 1/6] t4030: demonstrate behavior of show with textconv

2013-04-20 Thread Michael J Gruber
Jeff King venit, vidit, dixit 20.04.2013 06:04: On Fri, Apr 19, 2013 at 06:44:44PM +0200, Michael J Gruber wrote: git show commit obeys the textconc setting while git show blob does not. Demonstrate this in the test. s/textconc/textconv Thanks, plus s/obey/honor/ diff --git a/t/t4030

Re: [PATCH 6/6] grep: obey --textconv for the case rev:path

2013-04-20 Thread Michael J Gruber
Jeff King venit, vidit, dixit 20.04.2013 06:24: On Fri, Apr 19, 2013 at 06:44:49PM +0200, Michael J Gruber wrote: @@ -820,12 +820,13 @@ int cmd_grep(int argc, const char **argv, const char *prefix) for (i = 0; i argc; i++) { const char *arg = argv[i

Re: [PATCH 2/6] show: obey --textconv for blobs

2013-04-20 Thread Michael J Gruber
Jeff King venit, vidit, dixit 20.04.2013 06:06: On Fri, Apr 19, 2013 at 06:44:45PM +0200, Michael J Gruber wrote: Currently, diff and cat-file for blobs obey --textconv options (with the former defaulting to --textconv and the latter to --no-textconv) whereas show does not obey this option

Re: [PATCH 0/6] grep with textconv

2013-04-20 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 19.04.2013 20:24: Michael J Gruber g...@drmicha.warpmail.net writes: This series teaches show and grep to obey textconv: show by default (like diff), grep only on request (--textconv). We might switch the default for the latter also, of course. I'd

[PATCH 0/6] grep with textconv

2013-04-19 Thread Michael J Gruber
since. Jeff King (1): grep: allow to use textconv filters Michael J Gruber (5): t4030: demonstrate behavior of show with textconv show: obey --textconv for blobs cat-file: do not die on --textconv without textconv filters t7008: demonstrate behavior of grep with textconv grep: obey

[PATCH 1/6] t4030: demonstrate behavior of show with textconv

2013-04-19 Thread Michael J Gruber
git show commit obeys the textconc setting while git show blob does not. Demonstrate this in the test. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- t/t4030-diff-textconv.sh | 12 1 file changed, 12 insertions(+) diff --git a/t/t4030-diff-textconv.sh b/t/t4030-diff

[PATCH 2/6] show: obey --textconv for blobs

2013-04-19 Thread Michael J Gruber
and --no-textconv when given. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- builtin/log.c| 24 +--- t/t4030-diff-textconv.sh | 8 +++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/builtin/log.c b/builtin/log.c index 5f3ed77..fe0275e 100644

[PATCH 3/6] cat-file: do not die on --textconv without textconv filters

2013-04-19 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 Gruber

[PATCH 4/6] t7008: demonstrate behavior of grep with textconv

2013-04-19 Thread Michael J Gruber
Currently, git grep does not invoke any textconv filters. Demonstrate this in the tests. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- t/t7008-grep-binary.sh | 19 +++ 1 file changed, 19 insertions(+) diff --git a/t/t7008-grep-binary.sh b/t/t7008-grep-binary.sh

[PATCH 5/6] grep: allow to use textconv filters

2013-04-19 Thread Michael J Gruber
for grepping and output purposes. It is off by default. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- builtin/grep.c | 2 + grep.c | 100 ++--- grep.h | 1 + t/t7008-grep-binary.sh | 18

Re: [PATCH] tag: --force is quiet about new tags

2013-03-13 Thread Michael J Gruber
Phil Hord venit, vidit, dixit 13.03.2013 05:21: On Tue, Mar 12, 2013 at 11:33 PM, Junio C Hamano gits...@pobox.com wrote: Phil Hord ho...@cisco.com writes: git tag --force is used to replace an existing tag with a new reference. Git helpfully tells the user the old ref when this happens.

Re: Textconv

2013-03-11 Thread Michael J Gruber
Dmitry Ilin venit, vidit, dixit 11.03.2013 12:30: I tried this command and I got following result: trace: built-in: git 'show' 'a1bffde' trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k '\''abcde'\'' 2 /dev/null || cat' trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb

Re: [PATCH] help: show manpage for aliased command on git alias --help

2013-03-06 Thread Michael J Gruber
Jeff King venit, vidit, dixit 05.03.2013 18:38: On Tue, Mar 05, 2013 at 02:44:41PM +, Ævar Arnfjörð Bjarmason wrote: Change the semantics of git alias --help to show the help for the command alias is aliased to, instead of just saying: `git alias' is aliased to `whatever' E.g. if

Re: Ignore version update changes on git show report?

2013-03-01 Thread Michael J Gruber
Preben Liland Madsen venit, vidit, dixit 26.02.2013 20:53: Hello, I'm trying to investigate some what changes have been done between two versions of a software with the name IP.Board. This proves more troublesome than I thought, since their release builder appearantly updates the

Re: clean/smudge filters on .zip/.tgz files

2013-02-27 Thread Michael J Gruber
Johannes Sixt venit, vidit, dixit 27.02.2013 07:39: Am 2/26/2013 23:38, schrieb Tim Chase: Various programs that I use ([Open|Libre]Office, Vym, etc) use a zipped/.tgz'ed file format, usually containing multiple (usually) plain-text files within. I'm trying to figure out a way for git to

RFD: concatening textconv filters

2013-02-21 Thread Michael J Gruber
During my day-to-day UGFWIINIT I noticed that we don't do textconv iteratively. E.g.: I have a file SuperSecretButDumbFormat.pdf.gpg and textconv filters with attributes set for *.gpg and *.pdf (using gpg resp. pdftotext). For Git, the file has only the gpg attribute, of course. In this case, I

Re: Git Merge 2013 Conference, Berlin

2013-02-20 Thread Michael J Gruber
Junio C Hamano venit, vidit, dixit 20.02.2013 00:47: Scott Chacon scha...@gmail.com writes: Junio, are you interested in attending? I am interested in meeting our European contributors, but Berlin is kind of very far, so give me a few days to think about it. Thanks. Maybe, we can -

Re: [PATCH] l10n: de.po: translate 35 new messages

2013-02-19 Thread Michael J Gruber
Ralf Thielow venit, vidit, dixit 18.02.2013 19:22: Translate 35 new messages came from git.pot update in 9caaf23 (l10n: Update git.pot (35 new, 14 removed messages)). Signed-off-by: Ralf Thielow ralf.thie...@gmail.com --- po/de.po | 140

Re: Git Merge 2013 Conference, Berlin

2013-02-19 Thread Michael J Gruber
Michael J Gruber venit, vidit, dixit 19.02.2013 16:20: Scott Chacon venit, vidit, dixit 18.02.2013 22:29: Right now we have: Dev day: 50 User day: 295 Hack day: 200 I'm not sure what the actual turnout will be, but it looks like it's going to be pretty massive. I wanted to go through

<    1   2   3   4   5   6   7   8   >