Re: [PATCH v4 4/4] commit: support commit.verbose and --no-verbose

2014-06-12 Thread Caleb Thompson
Another update to also use quotes around the check-for-no-diff script body. If I don't get any more feedback in the next few hours I'll send another full version of the patch. Caleb Thompson >8 Add a new configuration variable commit.verbose to

Re: [PATCH v4 4/4] commit: support commit.verbose and --no-verbose

2014-06-11 Thread Caleb Thompson
On Wed, Jun 11, 2014, at 01:41 PM, René Scharfe wrote: >> @@ -1556,7 +1560,7 @@ int cmd_commit(int argc, const char **argv, const char >> *prefix) >> static struct wt_status s; >> static struct option builtin_commit_options[] = { >>OPT__QUIET(&quiet, N_("suppress summary after successful com

Re: [PATCH v4 4/4] commit: support commit.verbose and --no-verbose

2014-06-11 Thread René Scharfe
Am 11.06.2014 20:24, schrieb ca...@calebthompson.io: Add a new configuration variable commit.verbose to implicitly pass `--verbose` to `git-commit`. Add `--no-verbose` to commit to negate that setting. Signed-off-by: Caleb Thompson --- Documentation/config.txt | 5 + Docume

[PATCH v4 4/4] commit: support commit.verbose and --no-verbose

2014-06-11 Thread
Add a new configuration variable commit.verbose to implicitly pass `--verbose` to `git-commit`. Add `--no-verbose` to commit to negate that setting. Signed-off-by: Caleb Thompson --- Documentation/config.txt | 5 + Documentation/git-commit.txt | 8 +++- builtin/

[PATCH v4 0/4] commit: support commit.verbose and --no-verbose

2014-06-11 Thread
t commit test: test_set_editor in each test commit: support commit.verbose and --no-verbose Documentation/config.txt | 5 + Documentation/git-commit.txt | 8 +++- builtin/commit.c | 6 +- contrib/completion/git-compl

Re: commit: support commit.verbose and --no-verbose

2014-05-27 Thread Junio C Hamano
Jeremiah Mahler writes: > On Fri, May 23, 2014 at 04:22:22PM -0500, Caleb Thompson wrote: >> This patch allows people to set `commit.verbose` to implicitly send >> `--verbose` > ... >> >> +cat >check-for-no-diff <> +#!$SHELL_PATH >> +exec grep -v '^diff --git' "\$1" >> +EOF >> +chmod +x check-

Re: [PATCH v3 0/5] commit: support commit.verbose and --no-verbose

2014-05-26 Thread Caleb Thompson
Great, thanks Jeremiah! I made that change, and will send up another patch version in the next day or so while I wait on others who may have input. I'm really appreciative of everyone's feedback! Caleb >8-- diff --git a/t/t750

Re: [PATCH v3 0/5] commit: support commit.verbose and --no-verbose

2014-05-26 Thread Jeremiah Mahler
Caleb, On Mon, May 26, 2014 at 01:56:21PM -0500, Caleb Thompson wrote: > This patch allows people to set commit.verbose to implicitly send > --verbose to git-commit. It also introduces --no-verbose to > override the configuration setting. > > This version incorporates changes suggested by Eric Su

Re: [PATCH v3 5/5] commit: support commit.verbose and --no-verbose

2014-05-26 Thread Jeremiah Mahler
Caleb, On Mon, May 26, 2014 at 01:56:26PM -0500, Caleb Thompson wrote: > Add a new configuration variable commit.verbose to implicitly pass > `--verbose` to `git-commit`. Add `--no-verbose` to commit to negate that > setting. > > Signed-off-by: Caleb Thompson > --- > Documentation/config.txt

Re: [PATCH v3 5/5] commit: support commit.verbose and --no-verbose

2014-05-26 Thread Jeremiah Mahler
On Mon, May 26, 2014 at 03:39:55PM -0500, Caleb Thompson wrote: > The editors, `check-for-diff` and `check-for-no-diffs`, are grepping for > the output and lack thereof, respectively. ... > > > > It appears that these tests still aren't checking to see if the > > "verbose" output appears in the com

Re: [PATCH v3 5/5] commit: support commit.verbose and --no-verbose

2014-05-26 Thread Caleb Thompson
The editors, `check-for-diff` and `check-for-no-diffs`, are grepping for the output and lack thereof, respectively. On Mon, May 26, 2014 at 01:33:04PM -0700, Jeremiah Mahler wrote: > j > On Mon, May 26, 2014 at 01:56:26PM -0500, Caleb Thompson wrote: > > Add a new configuration variable commit.ver

Re: [PATCH v3 5/5] commit: support commit.verbose and --no-verbose

2014-05-26 Thread Jeremiah Mahler
j On Mon, May 26, 2014 at 01:56:26PM -0500, Caleb Thompson wrote: > Add a new configuration variable commit.verbose to implicitly pass > ... > +test_expect_success 'commit shows verbose diff with set commit.verbose=true' > ' > + echo morecontent >>file && > + git add file && > + test

[PATCH v3 5/5] commit: support commit.verbose and --no-verbose

2014-05-26 Thread Caleb Thompson
Add a new configuration variable commit.verbose to implicitly pass `--verbose` to `git-commit`. Add `--no-verbose` to commit to negate that setting. Signed-off-by: Caleb Thompson --- Documentation/config.txt | 5 + Documentation/git-commit.txt | 8 +++- builtin/

[PATCH v3 0/5] commit: support commit.verbose and --no-verbose

2014-05-26 Thread Caleb Thompson
test: Use write_script commit test: test_set_editor in each test commit: support commit.verbose and --no-verbose Documentation/config.txt | 5 Documentation/git-commit.txt | 8 +- builtin/commit.c | 6 - contrib/completion

Re: [PATCH v2] commit: support commit.verbose and --no-verbose

2014-05-25 Thread Eric Sunshine
utomatically from the email. > commit 1a49356b87c9028e68e731f34790c11a3075f736 Drop this line. It has no meaning outside of your local repository. > Author: Caleb Thompson > Date: Fri May 23 11:47:44 2014 -0500 Ditto for the date. > commit: support commit.verbose and --no-verbos

Re: [PATCH v2] commit: support commit.verbose and --no-verbose

2014-05-25 Thread Duy Nguyen
On Sun, May 25, 2014 at 1:24 PM, Caleb Thompson wrote: > Duy, you were right about `-V`. Do you know of a simple way to add that > shortened flag? `OPT_BOOL('v', "verbose", ...)` gives me `-v`, `--verbose`, > and > `--no-verbose`, but no `-V` as a shortened form of `--no-verbose`. No, I don't th

Re: [PATCH v2] commit: support commit.verbose and --no-verbose

2014-05-25 Thread Jeremiah Mahler
On Sun, May 25, 2014 at 01:24:27AM -0500, Caleb Thompson wrote: > Incorporated changes from Duy Nguyen and Jeremiah Mahler. > ... > > +test_expect_success 'commit shows verbose diff with set commit.verbose' ' > + echo morecontent >file && > + git add file && > + test_config commit.ver

Re: [PATCH v2] commit: support commit.verbose and --no-verbose

2014-05-25 Thread Jeremiah Mahler
On Sun, May 25, 2014 at 01:24:27AM -0500, Caleb Thompson wrote: ... > would be committed at the bottom of the commit message > template. Note that this diff output doesn't have its > - lines prefixed with '#'. > + lines prefixed with '#'. The `commit.verbose` configuration > +

[PATCH v2] commit: support commit.verbose and --no-verbose

2014-05-24 Thread Caleb Thompson
ose`, and `--no-verbose`, but no `-V` as a shortened form of `--no-verbose`. commit 1a49356b87c9028e68e731f34790c11a3075f736 Author: Caleb Thompson Date: Fri May 23 11:47:44 2014 -0500 commit: support commit.verbose and --no-verbose Add a new configuration variable commit.verbose t

Re: commit: support commit.verbose and --no-verbose

2014-05-24 Thread Duy Nguyen
On Sat, May 24, 2014 at 4:22 AM, Caleb Thompson wrote: > This patch allows people to set `commit.verbose` to implicitly send > `--verbose` > to `git commit`. It also introduces `--no-verbose` to override the > configuration > setting. The code change looks fine to me (no opinion if we should do

Re: commit: support commit.verbose and --no-verbose

2014-05-24 Thread Jeremiah Mahler
On Fri, May 23, 2014 at 04:22:22PM -0500, Caleb Thompson wrote: > This patch allows people to set `commit.verbose` to implicitly send > `--verbose` ... > > +cat >check-for-no-diff < +#!$SHELL_PATH > +exec grep -v '^diff --git' "\$1" > +EOF > +chmod +x check-for-no-diff > + For new tests, comma

commit: support commit.verbose and --no-verbose

2014-05-23 Thread Caleb Thompson
2014 11:47:44 -0500 Subject: [PATCH] commit: support commit.verbose and --no-verbose Add a new configuration variable commit.verbose to implicitly pass `--verbose` to `git-commit`. Add `--no-verbose` to commit to negate that setting. Signed-off-by: Caleb Thompson --- Documentation/config.txt