Re: [PATCH] cherry-pick: do not error on non-merge commits when '-m 1' is specified

2019-03-24 Thread Sergey Organov
Junio C Hamano writes: > Sergey Organov writes: > >> I think that "first-parent is special" is the way to go indeed for >> porcelain, as it does make many thing easier and more convenient[*]. > > Perhaps. However ... > >> [*] One example that immediately comes to mind is "git log -p" for a >> m

How to disable docs when building Git from sources

2019-03-24 Thread Jeffrey Walton
Hi Everyone, I'm working on a low-resource dev-board. It is missing a lot of utilities to save space. I'm building Git 2.20 from sources. Make is failing due to '/bin/sh: 1: msgfmt: not found'. I don't cross-compile because that's a bigger pain in the ass than waiting for the native build to finis

Re: [PATCH 1/3] rebase: teach rebase --keep-base

2019-03-24 Thread Denton Liu
On Sat, Mar 23, 2019 at 08:25:28AM -0700, Denton Liu wrote: > A common scenario is if a user is working on a topic branch and they > wish to make some changes to intermediate commits or autosquashing, they Sorry, small typo here: s/autosquashing/autosquash/ -Denton > would run something such as

Re: [PATCH 1/3] rebase: teach rebase --keep-base

2019-03-24 Thread Denton Liu
On Sun, Mar 24, 2019 at 05:06:18PM -0700, Denton Liu wrote: > Hi Junio, > > On Sun, Mar 24, 2019 at 10:20:28PM +0900, Junio C Hamano wrote: > > Denton Liu writes: > > > > > A common scenario is if a user is working on a topic branch and they > > > wish to make some changes to intermediate commit

Re: [PATCH] In `git log --graph`, default to --pretty=oneline --abbrev-commit

2019-03-24 Thread Alex Henrie
On Sun, Mar 24, 2019 at 11:10 PM Alex Henrie wrote: > > I like the idea of a completely separate `git graph` command. This > command would simply be a builtin alias for `git log --abbrev-commit > --pretty=oneline`, like how `git reflog` is a builtin alias for `git > log -g --abbrev-commit --pretty

Re: [PATCH] In `git log --graph`, default to --pretty=oneline --abbrev-commit

2019-03-24 Thread Alex Henrie
On Sun, Mar 24, 2019 at 7:18 PM Rafael Ascensão wrote: > > But If we make the default to 'short' (or anything else), what should be > done if the user has `format.pretty=` defined to something? Is `--graph` > special to be allowed to not follow said configuration? > > It's inconsistent itself, and

Re: [RFC PATCH 0/1] Fuzzy blame

2019-03-24 Thread Junio C Hamano
mich...@platin.gs writes: > From: Michael Platings > > Hi Git devs, > > Some of you may be familiar with the git-hyper-blame tool [1]. It's "useful if > you have a commit that makes sweeping changes that are unlikely to be what you > are looking for in a blame, such as mass reformatting or renami

Re: [PATCH v2] config: correct '**' matching in includeIf patterns

2019-03-24 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > The current wildmatch() call for includeIf's gitdir pattern does not > pass the WM_PATHNAME flag. Without this flag, '*' is treated _almost_ > the same as '**' (because '*' also matches slashes) with one exception: > > '/**/' can match a single slash. The pattern '

Re: git tag -v should verify that the tag signer intended the same tag name as the user is verifying

2019-03-24 Thread Junio C Hamano
Daniel Kahn Gillmor writes: > What do you think of my updated proposal for tag.verifyNameMatch ? Meh to slightly negative for hard-coding project-specific preference to the core tools. "We give you --format so go wild in your project to do verification your project likes." I think was the conc

Re: [PATCH v3 1/1] trace2: write to directory targets

2019-03-24 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > On Sun, Mar 24 2019, Junio C Hamano wrote: > >> Ævar Arnfjörð Bjarmason writes: >> >>> The reason I'm raising this is that it seems like sweeping an existing >>> issue under the rug. We document that the "sid" is "unique", and it's just: >>> >>> - >> >> If i

Re: [PATCH] In `git log --graph`, default to --pretty=oneline --abbrev-commit

2019-03-24 Thread Rafael Ascensão
Hi Alex, On Sun, Mar 24, 2019 at 04:37:25PM -0600, Alex Henrie wrote: > > Can we compromise and make --pretty=short the default for --graph? > I agree that `pretty=medium` is sometimes hard to read and, as of now, `pretty=oneline` can be very misleading: $ git log --graph --oneline todo~2.

Re: [PATCH 1/3] rebase: teach rebase --keep-base

2019-03-24 Thread Denton Liu
Hi Junio, On Sun, Mar 24, 2019 at 10:20:28PM +0900, Junio C Hamano wrote: > Denton Liu writes: > > > A common scenario is if a user is working on a topic branch and they > > wish to make some changes to intermediate commits or autosquashing, they > > would run something such as > > > > git r

Re: [PATCH 0/3] rebase: learn --keep-base

2019-03-24 Thread Denton Liu
Hi Junio, On Sun, Mar 24, 2019 at 10:15:31PM +0900, Junio C Hamano wrote: > Denton Liu writes: > > > This series teaches rebase the --keep-base option. > > > > 'git rebase --keep-base ' is equivalent to > > 'git rebase --onto ... ' or > > 'git rebase --onto $(git merge-base HEAD) ' . > > > > Th

[RFC PATCH 1/1] Fuzzy blame

2019-03-24 Thread michael
From: Michael Platings --- blame.c| 352 +++-- blame.h| 1 + builtin/blame.c| 3 + t/t8020-blame-fuzzy.sh | 264 + 4 files changed, 609 insertions(+), 11 deletions(-) crea

[RFC PATCH 0/1] Fuzzy blame

2019-03-24 Thread michael
From: Michael Platings Hi Git devs, Some of you may be familiar with the git-hyper-blame tool [1]. It's "useful if you have a commit that makes sweeping changes that are unlikely to be what you are looking for in a blame, such as mass reformatting or renaming." git-hyper-blame is useful but (a)

Re: [PATCH] In `git log --graph`, default to --pretty=oneline --abbrev-commit

2019-03-24 Thread Alex Henrie
On Sun, Mar 24, 2019 at 7:03 AM Junio C Hamano wrote: > > Alex Henrie writes: > > > Having --pretty=medium as the default almost always makes the graph too > > difficult to follow. > > > > Signed-off-by: Alex Henrie > > --- > > I too thought that "--graph" should make "--oneline" the default > b

[PATCH v2 4/6] ci: install Asciidoctor in 'ci/install-dependencies.sh'

2019-03-24 Thread SZEDER Gábor
When our '.travis.yml' was split into several 'ci/*' scripts [1], the installation of the 'asciidoctor' gem somehow ended up in 'ci/test-documentation.sh'. Install it in 'ci/install-dependencies.sh', where we install everything else. [1] 657343a602 (travis-ci: move Travis CI code into dedicated s

[PATCH v2 2/6] Documentation/technical/api-config.txt: fix formatting

2019-03-24 Thread SZEDER Gábor
Asciidoctor versions v1.5.7 or later print the following warning while building the documentation: ASCIIDOC technical/api-config.html asciidoctor: WARNING: api-config.txt: line 232: unterminated listing block This highlight an issue (even with older Asciidoctor versions) where the length

[PATCH v2 5/6] ci: stick with Asciidoctor v1.5.8 for now

2019-03-24 Thread SZEDER Gábor
The release of Asciidoctor v2.0.0 two days ago broke our documentation build job on Travis CI, where we 'gem install asciidoctor', which always brings us the latest and (supposedly) greatest. Alas, we are not ready for that just yet, because it removed support for DocBook 4.5, and we have been req

[PATCH v2 1/6] Documentation/git-diff-tree.txt: fix formatting

2019-03-24 Thread SZEDER Gábor
Asciidoctor versions v1.5.7 or later print the following warning while building the documentation: ASCIIDOC git-diff-tree.xml asciidoctor: WARNING: diff-format.txt: line 2: unterminated listing block This highlights an issue (even with older Asciidoctor versions) where the "Raw output for

[PATCH v2 6/6] ci: fix AsciiDoc/Asciidoctor stderr check in the documentation build job

2019-03-24 Thread SZEDER Gábor
In our 'ci/*' build scripts we rely on 'set -e' aborting the build job when a command exits with error, while in 'ci/test-documentation.sh' we tried to check the emptiness of AsciiDoc's and Asciidoctor's standard error with '! test -s stderr.log'. Unfortunately, the combination of the two doesn't

[PATCH v2 3/6] Documentation/technical/protocol-v2.txt: fix formatting

2019-03-24 Thread SZEDER Gábor
Asciidoctor versions v1.5.7 or later print the following warning while building the documentation: ASCIIDOC technical/protocol-v2.html asciidoctor: WARNING: protocol-v2.txt: line 38: unterminated listing block This highlights an issue (even with older Asciidoctor versions) where the 'Init

[PATCH v2 0/6] Asciidoctor-related formatting and CI fixes

2019-03-24 Thread SZEDER Gábor
The first three patches fix formatting issues with Asciidoctor; they are the same patches that I sent earlier today, except some commit message updates (now they mention the Asciidoctor version which started to issue the warning, and I fixed that missing half-sentence in one of the commit messages)

Re: [GSoC][PATCH v4 1/7] clone: test for our behavior on odd objects/* content

2019-03-24 Thread SZEDER Gábor
On Fri, Mar 22, 2019 at 08:22:31PM -0300, Matheus Tavares wrote: > From: Ævar Arnfjörð Bjarmason > > Add tests for what happens when we perform a local clone on a repo > containing odd files at .git/object directory, such as symlinks to other > dirs, or unknown files. > > I'm bending over backwa

Re: [GSoC][PATCH v3 2/3] t0000: avoid using pipes

2019-03-24 Thread Ævar Arnfjörð Bjarmason
On Sun, Mar 24 2019, jonathan chang wrote: > On Mon, Mar 18, 2019 at 12:47 AM Ævar Arnfjörð Bjarmason > wrote: >> >> >> On Sun, Mar 17 2019, Jonathan Chang wrote: >> >> > The exit code of the upstream in a pipe is ignored thus we should avoid >> > using it. By writing out the output of the git

Re: [PATCH] In `git log --graph`, default to --pretty=oneline --abbrev-commit

2019-03-24 Thread Ævar Arnfjörð Bjarmason
On Sun, Mar 24 2019, Junio C Hamano wrote: > Alex Henrie writes: > >> Having --pretty=medium as the default almost always makes the graph too >> difficult to follow. >> >> Signed-off-by: Alex Henrie >> --- > > I too thought that "--graph" should make "--oneline" the default > back when I origi

Re: [GSoC][PATCH v4 1/7] clone: test for our behavior on odd objects/* content

2019-03-24 Thread Matheus Tavares Bernardino
On Fri, Mar 22, 2019 at 8:22 PM Matheus Tavares wrote: > > From: Ævar Arnfjörð Bjarmason > > Add tests for what happens when we perform a local clone on a repo > containing odd files at .git/object directory, such as symlinks to other > dirs, or unknown files. > > I'm bending over backwards here

Re: [PATCH] asciidoctor-extensions: provide ``

2019-03-24 Thread Todd Zullinger
Hi, Jeff King wrote: > On Sat, Mar 23, 2019 at 03:27:56PM -0400, Todd Zullinger wrote: > >> I updated my system to asciidoctor-2.0.0 last night and now >> I can't even generate the man pages properly, because the >> docbook45 converter was removed. I'll have to see if I >> missed some other requ

Re: [PATCH 3/3] Documentation/technical/protocol-v2.txt: fix formatting

2019-03-24 Thread SZEDER Gábor
On Sun, Mar 24, 2019 at 04:52:19PM +0100, SZEDER Gábor wrote: > Some more recent versions of Asciidoctor issue the following warning > while building the documentation: > > ASCIIDOC technical/protocol-v2.html > asciidoctor: WARNING: protocol-v2.txt: line 38: unterminated listing block > >

[PATCH 1/3] Documentation/git-diff-tree.txt: fix formatting

2019-03-24 Thread SZEDER Gábor
Some more recent versions of Asciidoctor issue the following warning while building the documentation: ASCIIDOC git-diff-tree.xml asciidoctor: WARNING: diff-format.txt: line 2: unterminated listing block This highlights an issue where the "Raw output format" header is not rendered as a he

[PATCH 3/3] Documentation/technical/protocol-v2.txt: fix formatting

2019-03-24 Thread SZEDER Gábor
Some more recent versions of Asciidoctor issue the following warning while building the documentation: ASCIIDOC technical/protocol-v2.html asciidoctor: WARNING: protocol-v2.txt: line 38: unterminated listing block This highlights an issue where the 'Initial Client Request' header is not r

[PATCH 2/3] Documentation/technical/api-config.txt: fix formatting

2019-03-24 Thread SZEDER Gábor
Some more recent versions of Asciidoctor issue the following warning while building the documentation: ASCIIDOC technical/api-config.html asciidoctor: WARNING: api-config.txt: line 232: unterminated listing block This highlight an issue where the length of the '' lines surrounding a c

Re: git tag -v should verify that the tag signer intended the same tag name as the user is verifying

2019-03-24 Thread Daniel Kahn Gillmor
On Sun 2019-03-24 21:26:13 +0900, Junio C Hamano wrote: > Daniel Kahn Gillmor writes: > >> I don't personally have any use case for doing such a tag rename -- you >> mention two: >> >> a) wanting to call tag "foo" that you found on remote "origin" by the >> name of "origin/foo" >> >> b) want

Re: git tag -v should verify that the tag signer intended the same tag name as the user is verifying

2019-03-24 Thread Ævar Arnfjörð Bjarmason
On Fri, Mar 22 2019, Daniel Kahn Gillmor wrote: > On Wed 2019-03-20 23:35:48 +0100, Ævar Arnfjörð Bjarmason wrote: >> But e.g. if you've signed a v1.00 in foo.git, but also maintain bar.git >> and have a v2.00 there, I can be fooled in foo.git with your proposed >> change by having the v2.00 bar

Re: [PATCH v3 1/1] trace2: write to directory targets

2019-03-24 Thread Ævar Arnfjörð Bjarmason
On Sun, Mar 24 2019, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> The reason I'm raising this is that it seems like sweeping an existing >> issue under the rug. We document that the "sid" is "unique", and it's just: >> >> - > > If it is just that, then it cannot be unique, c

Re: [PATCH 1/3] rebase: teach rebase --keep-base

2019-03-24 Thread Junio C Hamano
Denton Liu writes: > if (strstr(options.onto_name, "...")) { > if (get_oid_mb(options.onto_name, &merge_base) < 0) > + if (keep_base) > + die(_("'%s': need exactly one merge base with branch"), > + options.upstrea

Re: [PATCH 1/3] rebase: teach rebase --keep-base

2019-03-24 Thread Junio C Hamano
Denton Liu writes: > A common scenario is if a user is working on a topic branch and they > wish to make some changes to intermediate commits or autosquashing, they > would run something such as > > git rebase -i --onto master... master > > in order to preserve the merge base. This prevents

[PATCH v2] config: correct '**' matching in includeIf patterns

2019-03-24 Thread Nguyễn Thái Ngọc Duy
The current wildmatch() call for includeIf's gitdir pattern does not pass the WM_PATHNAME flag. Without this flag, '*' is treated _almost_ the same as '**' (because '*' also matches slashes) with one exception: '/**/' can match a single slash. The pattern 'foo/**/bar' matches 'foo/bar'. But '/*/'

Re: [PATCH 0/3] rebase: learn --keep-base

2019-03-24 Thread Junio C Hamano
Denton Liu writes: > This series teaches rebase the --keep-base option. > > 'git rebase --keep-base ' is equivalent to > 'git rebase --onto ... ' or > 'git rebase --onto $(git merge-base HEAD) ' . > > This seems to be a common case that people (including myself!) run > into; I was able to find t

Re: [PATCH] In `git log --graph`, default to --pretty=oneline --abbrev-commit

2019-03-24 Thread Junio C Hamano
Alex Henrie writes: > Having --pretty=medium as the default almost always makes the graph too > difficult to follow. > > Signed-off-by: Alex Henrie > --- I too thought that "--graph" should make "--oneline" the default back when I originally accepted the patch series that introduced the "--grap

Re: [PATCH] config: correct '**' matching in includeIf patterns

2019-03-24 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > The current wildmatch() call for includeIf's gitdir pattern does not > pass the WM_PATHNAME flag. Without this flag, '*' is treated _almost_ > the same as '**' (because '*' also matches slashes) with one exception: > > '/**/' can match a single slash. The pattern '

Re: [PATCH 1/1] check-docs: fix for setups where executables have an extension

2019-03-24 Thread Junio C Hamano
Johannes Schindelin writes: > Sharp eyes, and a *very* good point. The double space is actually required > for this patch to work as intended. I added the following explanation to > the commit message: > > Note that `$(ALL_COMMANDS)` starts with a space, and that is rather > crucial for t

Re: [PATCH] Make stashing nothing exit 1

2019-03-24 Thread Junio C Hamano
Keith Smiley writes: > In the case there are no files to stash, but the user asked to stash, we > should exit 1 since the stashing failed. > --- Sorry, but I fail to see why this is a good change. Did you have some script that wanted the exit code from "git stash" to indicate if it had anything

Re: [PATCH v3 1/1] trace2: write to directory targets

2019-03-24 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > The reason I'm raising this is that it seems like sweeping an existing > issue under the rug. We document that the "sid" is "unique", and it's just: > > - If it is just that, then it cannot be unique, can it? Let's just fix the wrong doc and move on.

Re: git tag -v should verify that the tag signer intended the same tag name as the user is verifying

2019-03-24 Thread Junio C Hamano
Daniel Kahn Gillmor writes: > I don't personally have any use case for doing such a tag rename -- you > mention two: > > a) wanting to call tag "foo" that you found on remote "origin" by the > name of "origin/foo" > > b) wanting to call "v2.20.0" by the name "g2.20.0" For the record, in th

Re: [PATCH] asciidoctor-extensions: provide ``

2019-03-24 Thread Jeff King
On Sat, Mar 23, 2019 at 03:27:56PM -0400, Todd Zullinger wrote: > I updated my system to asciidoctor-2.0.0 last night and now > I can't even generate the man pages properly, because the > docbook45 converter was removed. I'll have to see if I > missed some other required update. :/ I ran into th

[PATCH 3/3] http: use normalize_curl_result() instead of manual conversion

2019-03-24 Thread Jeff King
When we switched off CURLOPT_FAILONERROR in 17966c0a63 (http: avoid disconnecting on 404s for loose objects, 2016-07-11), the fetch_object() function started manually handling 404's. Since we now have normalize_curl_result() for use elsewhere, we can use it here as well, shortening the code. Note

[PATCH 2/3] http: normalize curl results for dumb loose and alternates fetches

2019-03-24 Thread Jeff King
If the dumb-http walker encounters a 404 when fetching a loose object, it then looks at any http-alternates for the object. The 404 check is implemented by missing_target(), which checks not only the http code, but also that we got an http error from the CURLcode. That broke when we stopped using

[PATCH 1/3] http: factor out curl result code normalization

2019-03-24 Thread Jeff King
We make some requests with CURLOPT_FAILONERROR and some without, and then handle_curl_result() normalizes any failures to a uniform CURLcode. There are some other code paths in the dumb-http walker which don't use handle_curl_result(); let's pull the normalization into its own function so it can b

[PATCH 0/3] fix dumb-http fetch with alternates

2019-03-24 Thread Jeff King
On Sat, Mar 23, 2019 at 04:53:41AM -0400, Jeff King wrote: > On Fri, Mar 22, 2019 at 04:50:34PM +, Eric Wong wrote: > > > > Weird. I had set http.maxrequests to "1" to give more readable output > > > from GIT_CURL_VERBOSE, etc. It fails with that setting, but not with the > > > default of 5.

Re: [GSoC][PATCH v3 2/3] t0000: avoid using pipes

2019-03-24 Thread jonathan chang
On Mon, Mar 18, 2019 at 12:47 AM Ævar Arnfjörð Bjarmason wrote: > > > On Sun, Mar 17 2019, Jonathan Chang wrote: > > > The exit code of the upstream in a pipe is ignored thus we should avoid > > using it. By writing out the output of the git command to a file, we can > > test the exit codes of bot

Re: [GSoC][RFC/PATCH] userdiff: added support for diffing shell scripts

2019-03-24 Thread Kapil Jain
On Sun, Mar 24, 2019 at 2:49 PM Christian Couder wrote: > > The test_language_driver() function used to test the regexps is > ... > GIT_TEST_CMP which is usually either "diff -u" or "diff -c". Thanks. please provide some insights on the regex mentioned below: + +PATTERNS("shell", + /* Function

Re: [PATCH 1/1] check-docs: fix for setups where executables have an extension

2019-03-24 Thread Johannes Schindelin
Hi Taylor, On Fri, 22 Mar 2019, Taylor Blau wrote: > On Wed, Mar 13, 2019 at 04:56:53AM -0700, Johannes Schindelin via > GitGitGadget wrote: > > From: Johannes Schindelin > > > > On Windows, for example, executables (must) have the extension `.exe`. > > Our `check-docs` target was not prepared

Re: [GSoC][RFC/PATCH] userdiff: added support for diffing shell scripts

2019-03-24 Thread Christian Couder
On Sun, Mar 24, 2019 at 9:04 AM Kapil Jain wrote: > > On Sun, Mar 24, 2019 at 1:34 AM Christian Couder > wrote: > > > > To save some work by people who could help you, it might be a good > > idea to show the output of the failing test, for example the output of > > `./t4034-diff-words.sh -i -v` o

[GSoC][RFC/PATCH 2/2] userdiff: added shell script support, clears test

2019-03-24 Thread Kapil Jain
Signed-off-by: Kapil Jain --- The test passes now, but imo the regex is not working, because the output of git diff with shell regex remains same as earlier it was without shell regex. without shell regex the output was shown as: -$TEST_DIRECTORY +$TEST_DIR with shell regex the output should be

[PATCH v2 20/20] am: avoid diff_opt_parse()

2019-03-24 Thread Nguyễn Thái Ngọc Duy
diff_opt_parse() is a heavy hammer to just set diff filter. But it's the only way because of the diff_status_letters[] mapping. Add a new API to set diff filter and use it in git-am. diff_opt_parse()'s only remaining call site in revision.c will be gone soon and having it here just because of git-a

[PATCH v2 19/20] diff --no-index: use parse_options() instead of diff_opt_parse()

2019-03-24 Thread Nguyễn Thái Ngọc Duy
While at there, move exit() back to the caller. It's easier to see the flow that way than burying it in diff-no-index.c Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/diff.c | 21 +++-- diff-no-index.c | 49 diff.h

[PATCH v2 13/20] diff-parseopt: convert --no-prefix

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/diff.c b/diff.c index e1675a32ec..6029f8de2d 100644 --- a/diff.c +++ b/diff.c @@ -5022,6 +5022,18 @@ static int diff_opt_line_prefix(const struct option *opt,

[PATCH v2 14/20] diff-parseopt: convert --inter-hunk-context

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 50 +++-- parse-options.h | 3 ++- 2 files changed, 5 insertions(+), 48 deletions(-) diff --git a/diff.c b/diff.c index 6029f8de2d..8b65b03c0d 100644 --- a/diff.c +++ b/diff.c @@ -4573,50 +4573

[PATCH v2 17/20] diff.c: allow --no-color-moved-ws

2019-03-24 Thread Nguyễn Thái Ngọc Duy
This option is added in commit b73bcbac4a (diff: allow --no-color-moved-ws - 2018-11-23) in pw/diff-color-moved-ws-fix. To ease merge conflict resolution, re-implement the option handling here so that the conflict could be resolved by taking this side of change. Signed-off-by: Nguyễn Thái Ngọc Duy

[PATCH v2 15/20] diff-parseopt: convert --[no-]color-moved

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Mark one more string for translation while at there Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 38 +- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/diff.c b/diff.c index 8b65b03c0d..de6c09e95a 100644 --- a/diff.c +++ b/diff.c @@ -4841,6

[PATCH v2 18/20] range-diff: use parse_options() instead of diff_opt_parse()

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Diff's internal option parsing is now done with 'struct option', which makes it possible to combine all diff options to range-diff and parse everything all at once. Parsing code becomes simpler, and we get a looong 'git range-diff -h' Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/range-diff.c

[PATCH v2 16/20] diff-parseopt: convert --color-moved-ws

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/diff.c b/diff.c index de6c09e95a..1a24bbfb69 100644 --- a/diff.c +++ b/diff.c @@ -4862,6 +4862,20 @@ static int diff_opt_color_moved(const struc

[PATCH v2 12/20] diff-parseopt: convert --line-prefix

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/diff.c b/diff.c index 574fc511ff..e1675a32ec 100644 --- a/diff.c +++ b/diff.c @@ -5010,6 +5010,18 @@ static int diff_opt_ignore_submodules(const struct opti

[PATCH v2 05/20] diff-parseopt: convert -S|-G

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 37 - 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/diff.c b/diff.c index 6b19c97499..8f01fbc2c1 100644 --- a/diff.c +++ b/diff.c @@ -5056,6 +5056,28 @@ static int diff_opt_patience(const struct

[PATCH v2 04/20] diff-parseopt: convert -l

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/diff.c b/diff.c index 2b1d015553..6b19c97499 100644 --- a/diff.c +++ b/diff.c @@ -5283,6 +5283,8 @@ static void prep_parse_options(struct diff_options *options)

[PATCH v2 07/20] diff-parseopt: convert -O

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 23 +++ 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/diff.c b/diff.c index 699f8605d0..849620aea5 100644 --- a/diff.c +++ b/diff.c @@ -4617,22 +4617,6 @@ static int opt_arg(const char *arg, int arg_short, const

[PATCH v2 03/20] diff-parseopt: convert -z

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/diff.c b/diff.c index 8255db6966..2b1d015553 100644 --- a/diff.c +++ b/diff.c @@ -5238,6 +5238,9 @@ static void prep_parse_options(struct diff_options *options)

[PATCH v2 06/20] diff-parseopt: convert --pickaxe-all|--pickaxe-regex

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/diff.c b/diff.c index 8f01fbc2c1..699f8605d0 100644 --- a/diff.c +++ b/diff.c @@ -5391,6 +5391,12 @@ static void prep_parse_options(struct diff_options *options)

[PATCH v2 11/20] diff-parseopt: convert --[src|dst]-prefix

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 14 ++ parse-options.h | 3 ++- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/diff.c b/diff.c index 8d387280a4..574fc511ff 100644 --- a/diff.c +++ b/diff.c @@ -5255,6 +5255,12 @@ static void prep_parse_options

[PATCH v2 09/20] diff-parseopt: convert --diff-filter

2019-03-24 Thread Nguyễn Thái Ngọc Duy
While at it, mark one more string for translation Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/diff.c b/diff.c index 99871d2546..47146c33f5 100644 --- a/diff.c +++ b/diff.c @@ -4736,10 +4736,13 @@ static uns

[PATCH v2 02/20] diff-parseopt: convert --ita-[in]visible-in-index

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/diff.c b/diff.c index 7bfdf08137..8255db6966 100644 --- a/diff.c +++ b/diff.c @@ -5352,6 +5352,12 @@ static void prep_parse_options(struct diff_options *options)

[PATCH v2 01/20] diff-parseopt: convert --ws-error-highlight

2019-03-24 Thread Nguyễn Thái Ngọc Duy
Mark one more string for translation while at there. Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/diff.c b/diff.c index ce118bb326..7bfdf08137 100644 --- a/diff.c +++ b/diff.c @@ -4801,17 +4801,18 @@ s

[PATCH v2 00/20] nd/diff-parseopt the last part

2019-03-24 Thread Nguyễn Thái Ngọc Duy
v2 fixes some help text and commit messages. No major changes. Nguyễn Thái Ngọc Duy (20): diff-parseopt: convert --ws-error-highlight diff-parseopt: convert --ita-[in]visible-in-index diff-parseopt: convert -z diff-parseopt: convert -l diff-parseopt: convert -S|-G diff-parseopt: conver

[PATCH v2 10/20] diff-parseopt: convert --[no-]abbrev

2019-03-24 Thread Nguyễn Thái Ngọc Duy
OPT__ABBREV() has the same behavior as the deleted code with one difference: it does check for valid number and error out if not. And the '40' change is self explanatory. Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 12 +--- parse-options-cb.c | 4 ++-- 2 files changed,

[PATCH v2 08/20] diff-parseopt: convert --find-object

2019-03-24 Thread Nguyễn Thái Ngọc Duy
While at it, mark one more string for translation. Signed-off-by: Nguyễn Thái Ngọc Duy --- diff.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/diff.c b/diff.c index 849620aea5..99871d2546 100644 --- a/diff.c +++ b/diff.c @@ -4799,12 +4799,15 @@ static int di

Re: [GSoC][RFC/PATCH] userdiff: added support for diffing shell scripts

2019-03-24 Thread Kapil Jain
On Sun, Mar 24, 2019 at 1:34 AM Christian Couder wrote: > > To save some work by people who could help you, it might be a good > idea to show the output of the failing test, for example the output of > `./t4034-diff-words.sh -i -v` or `./t4034-diff-words.sh -i -v -x`. Looks like i just needed to

Re: Git excludes fails to avoid git submodule warning

2019-03-24 Thread Duy Nguyen
On Sun, Mar 24, 2019 at 6:01 AM Klaatu wrote: > > Working with Git 2.21.0 on Linux: > > The git-add(1) man page says: > > "The optional configuration variable core.excludesFile indicates a path to a > file containing patterns of file names to exclude from git-add" > > But if I do this: > > $ echo

Software, Website & SEO

2019-03-24 Thread Shane
Dear Sir/Ma’am, We are an Web Design & Development company, comprising young and dynamic professionals. We have executed a number of projects in the below mentioned categories: Website Design & Development PHP & MySQL website application development E-Commerce Applications/ Websites Laravel & V