Since we implemented get_cleanup_mode, we had some duplicate code in
git_sequencer_config which essentially performed the same operations.
Refactor git_sequencer_config to take advantage of the logic already in
get_cleanup_mode.
Note that we had to introduce a separate argument to get_cleanup_mode
Junio C Hamano writes:
> Sergey Organov writes:
>
>>> To put it a bit differently, I share with you that picking merges
>>> should be deliberate and it is safer to make sure allowing it only
>>> when the told us that s/he knows the commit being picked is a merge,
>>
>> Something like "--[no-]ban
Define a function which allows us to get the string configuration value
of a enum commit_msg_cleanup_mode. This is done by refactoring
get_cleanup_mode such that it uses a lookup table to find the mappings
between string and enum and then using the same LUT in reverse to define
describe_cleanup_mod
Fix a bug where the scissors line is placed after the Conflicts:
section, in the case where a merge conflict occurs and
commit.cleanup = scissors.
Helped-by: Phillip Wood
Signed-off-by: Denton Liu
---
Documentation/git-cherry-pick.txt | 7 +++
Documentation/git-revert.txt | 7 +++
builti
This change allows git-merge messages to be cleaned up with the
commit.cleanup configuration or --cleanup option, just like how
git-commit does it.
We also give git-pull the passthrough option of --cleanup so that it can
also take advantage of this change.
Finally, add testing to ensure that mess
The --cleanup option is commonly used. Extract it so that its definition
is not repeated.
Helped-by: Phillip Wood
Signed-off-by: Denton Liu
---
builtin/commit.c | 2 +-
builtin/tag.c| 3 +--
parse-options.h | 1 +
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/builtin/commi
This fixes a bug where the scissors line is placed after the Conflicts:
section, in the case where a merge conflict occurs and
commit.cleanup = scissors.
Next, if commit.cleanup = scissors is specified, don't produce a
scissors line in commit if one already exists in the MERGE_MSG file.
Helped-by
Clean up the 'merge --squash c3 with c7' test by removing some
unnecessary braces and removing a pipe.
Also, generally cleanup style by unindenting a here-doc, removing stray
spaces after a redirection operator and allowing sed to open its own
input instead of redirecting input from the shell.
He
Before, we had some Git commands which were upstream of the pipe. This
meant that if it produced an error, it would've gone unnoticed. Refactor
to place Git commands on their own.
Also, while we're at it, remove spaces after redirection operators.
Helped-by: Eric Sunshine
Helped-by: SZEDER Gábor
Signed-off-by: Denton Liu
---
builtin/commit.c | 25 ++---
sequencer.c | 29 +
sequencer.h | 6 ++
3 files changed, 37 insertions(+), 23 deletions(-)
diff --git a/builtin/commit.c b/builtin/commit.c
index f17537474a..0df15e4851 10064
Thanks again for the reviews, everyone.
We're slowly making it there ;)
Previous discussion on the cherry-pick/revert changes can be found here[1].
Changes since revert/cherry-pick v3:
* Rebased on top of latest master
* Reordered and squashed patches
* Added populate_opts_cb and save_opts to
Remove space after redirection operators for style. Also, remove a git
command which was upstream of a pipe. Finally, let grep and sed open
their own input instead of letting the shell redirect the input.
Helped-by: SZEDER Gábor
Signed-off-by: Denton Liu
---
t/t3507-cherry-pick-conflict.sh | 42
Refactor out Git commands that were upstream of a pipe. Remove spaces
after "> ". Indent here-docs appropriately. Convert echo chains to use
the test_write_lines function. Refactor 'sign off' test to use test_cmp
instead of comparing variables.
Helped-by: Eric Sunshine
Helped-by: SZEDER Gábor
Si
Arrgh! That was an e-mail I was drafting when I suffered a power
failure. That's why it's full of incomplete sentences and repeitions;
I was trying different wordings.
It was never supposed to be sent, and when the power came back on
I decided not to try to resurrect it. But apparently when the
Junio C Hamano writes:
> Sergey Organov writes:
>
>>> To put it a bit differently, I share with you that picking merges
>>> should be deliberate and it is safer to make sure allowing it only
>>> when the told us that s/he knows the commit being picked is a merge,
>>
>> Something like "--[no-]ban
George Spelvin wrote nothing...
Did you mis-send or did vger eat your message?
Doesn't seem to be a problem with public-inbox.org,
same for gmane and marc.info:
nntp://news.gmane.org/201903190646.x2j6krwe017...@sdf.org
https://marc.info/?i=201903190646.x2j6krwe017...@sdf.org
mail-archive.com d
Nguyễn Thái Ngọc Duy writes:
> I did something stupid today and got
>
> $ git commit -a --fixup= @^
> fatal: Paths with -a does not make sense.
>
> which didn't make any sense (at least for the first few seconds).
>
> Include the first path(spec) in the error message to help spot the
> p
Sergey Organov writes:
>> To put it a bit differently, I share with you that picking merges
>> should be deliberate and it is safer to make sure allowing it only
>> when the told us that s/he knows the commit being picked is a merge,
>
> Something like "--[no-]ban-merges" then [*], having "--ban-
Junio C Hamano writes:
> Junio C Hamano writes:
>
>> Elijah Newren writes:
>>
>>> This worries me that it'll lead to bad surprises. Perhaps some folks
>>> cherry-pick merges around intentionally, but I would want that to be a
>>> rare occurrence at most.
>>
>> We can just reject this RFC patch
Junio C Hamano writes:
> Ævar Arnfjörð Bjarmason writes:
>
>> On Wed, Mar 20 2019, Junio C Hamano wrote:
>>
>>> 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 ones marked with
Phillip Wood writes:
> +static struct replay_opts get_replay_opts(const struct rebase_options *opts)
> +{
> + struct replay_opts replay = REPLAY_OPTS_INIT;
> +
> + sequencer_init_config(&replay);
> +
> + replay.action = REPLAY_INTERACTIVE_REBASE;
> + replay.signoff = opts->signoff
Junio C Hamano writes:
> Elijah Newren writes:
>
>> This worries me that it'll lead to bad surprises. Perhaps some folks
>> cherry-pick merges around intentionally, but I would want that to be a
>> rare occurrence at most.
>
> We can just reject this RFC patch and we'd be in a slightly safer
>
Todd Zullinger writes:
> Other than a follow-up to update the commit reference in 4/4
> after 1/4 is in the final form on pu, I think this might be good.
> If it's easier, we can skip 4/4 and I'll resend it after the
> others are on pu.
A series that makes a single topic should expect to be read
Elijah Newren writes:
> This worries me that it'll lead to bad surprises. Perhaps some folks
> cherry-pick merges around intentionally, but I would want that to be a
> rare occurrence at most. There are lots of folks at $DAYJOB that
> cherry-pick things, not all of them are expert git-users, an
Josh Steadmon writes:
> diff --git a/t/t0210-trace2-normal.sh b/t/t0210-trace2-normal.sh
> index 03a0aedb1d..26c9c1b3b8 100755
> --- a/t/t0210-trace2-normal.sh
> +++ b/t/t0210-trace2-normal.sh
> @@ -80,6 +80,21 @@ test_expect_success 'normal stream, return code 1' '
> test_cmp expect actual
On Wed, Mar 20, 2019 at 8:59 AM Sergey Organov wrote:
>
> Elijah Newren writes:
>
> > On Wed, Mar 20, 2019 at 8:09 AM Sergey Organov wrote:
> >>
> >> Junio C Hamano writes:
> >>
> >> [...]
> >>
> >> > But I do have a very strong opinion against adding yet another
> >> > option that takes an opt
Phillip Wood writes:
> From: Phillip Wood
>
> When the builtin rebase starts an interactive rebase it parses the
> options and then repackages them and forks `rebase--interactive`. This
> series refactors rebase--interactive so that interactive rebases can
> be started by the builtin rebase with
Junio C Hamano writes:
> * "git tag -v $(git rev-parse v1.0.0)" should work, but the command
Sorry, forget about this part of my message. I completely forgot the
discussion we had a few years ago:
https://public-inbox.org/git/CAPc5daV9ZvHqFtdzr565vp6Mv7O66ySr-p5Vi8o6bd6=gyv...@mail.gmail.com/
Daniel Kahn Gillmor writes:
> I understand that git tags can be easily renamed. for example:
>
> git tag push origin refs/tags/v0.0.3:refs/tags/v2.3.4
>
> However, for tags signed with any recent version of git, the tag name is
> also included in the signed material:
> ...
> But git tag does
Ævar Arnfjörð Bjarmason writes:
> On Wed, Mar 20 2019, Junio C Hamano wrote:
>
>> 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 ones marked with '.' do not appear in any of
>> th
Elijah Newren writes:
> On Tue, Mar 19, 2019 at 7:50 PM Junio C Hamano wrote:
>>
>> Duy Nguyen writes:
>>
>> > Kinda. But "--force --merge" makes no sense. --force discards all
>> > local changes by definition, which means you can't have conflicts and
>> > will not need --merge. I think this is
On Thu, Mar 21, 2019 at 6:00 AM Ævar Arnfjörð Bjarmason
wrote:
>
>
> On Wed, Mar 20 2019, Nguyễn Thái Ngọc Duy wrote:
>
> > [...]And the '40' change is self explanatory.
>
> Let me make an attempt at being dense anyway...
>
> > - else if (v > 40)
> > - v = 40;
> > +
Thomas Gummerer writes:
> On 03/21, Rohit Ashiwal wrote:
>> Hey Junio!
>>
>> On Wed, 20 Mar 2019 12:13:47 +0900 Junio C Hamano wrote:
>> > * ra/t3600-test-path-funcs (2019-03-08) 3 commits
>> > - t3600: use helpers to replace test -d/f/e/s
>> > - t3600: modernize style
>> > - test functions
Persistently enabling trace2 output is difficult because it requires
specifying a full filename. This series teaches tr2_dst_get_trace_fd()
to create files underneath a given directory provided as the target of
the GIT_TR2_* envvars.
Changes since V1:
* No longer supports timestamp templates.
* N
When the value of a trace2 environment variable is an absolute path
referring to an existing directory, write output to files (one per
process) underneath the given directory. Files will be named according
to the final component of the trace2 SID, followed by a counter to avoid
potential collisions
Dear Friend,
I am Mrs Clara David. am sending you this brief letter to solicit your
partnership to transfer $18.5 million US Dollars.I shall send you more
information and procedures when I receive positive response from you.
please send me a message in my Email box (mrsclarad...@gmail.com)
as i wa
On Wed, Mar 20, 2019 at 10:49:55PM +, Thomas Gummerer wrote:
> In the scripted 'git stash show' when no arguments are passed, we just
> pass '--stat' to 'git diff'. When any argument is passed to 'stash
> show', we no longer pass '--stat' to 'git diff', and pass whatever
> flags are passed dir
On 2019-03-20 22:56 UTC Thomas Gummerer wrote:
> Junio sometimes applies these fixes himself, if he deems it easier to
> apply them directly than to wait for another iteration, and if he has
> time to do so. If you have a look at the ra/t3600-test-path-funcs
> branch in gitster/git, e.g. on GitHu
On Tue, Mar 19 2019, Phillip Wood wrote:
> From: Phillip Wood
>
> When the builtin rebase starts an interactive rebase it parses the
> options and then repackages them and forks `rebase--interactive`. This
> series refactors rebase--interactive so that interactive rebases can
> be started by th
Hi Thomas,
Thanks for the quick fix!
On Wed, Mar 20, 2019 at 10:49:55PM +, Thomas Gummerer wrote:
> In the scripted 'git stash show' when no arguments are passed, we just
> pass '--stat' to 'git diff'. When any argument is passed to 'stash
> show', we no longer pass '--stat' to 'git diff', a
On Wed, Mar 20 2019, Nguyễn Thái Ngọc Duy wrote:
> [...]And the '40' change is self explanatory.
Let me make an attempt at being dense anyway...
> - else if (v > 40)
> - v = 40;
> + else if (v > the_hash_algo->hexsz)
> + v = the_h
On 03/21, Rohit Ashiwal wrote:
> Hey Junio!
>
> On Wed, 20 Mar 2019 12:13:47 +0900 Junio C Hamano wrote:
> > * ra/t3600-test-path-funcs (2019-03-08) 3 commits
> > - t3600: use helpers to replace test -d/f/e/s
> > - t3600: modernize style
> > - test functions: add function `test_file_not_empty
In the scripted 'git stash show' when no arguments are passed, we just
pass '--stat' to 'git diff'. When any argument is passed to 'stash
show', we no longer pass '--stat' to 'git diff', and pass whatever
flags are passed directly through to 'git diff'.
By default 'git diff' shows the patch outpu
On Wed, Mar 20 2019, Junio C Hamano wrote:
> 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 ones marked with '.' do not appear in any of
> the integration branches, but I am still
Dear Friend,
I know that this mail will come to you as a surprise as we have never
met before, but need not to worry as I am contacting you independently
of my investigation and no one is informed of this communication.
I need your urgent assistance in transferring the sum of $11.3million
immedia
On Wed, Mar 20 2019, Daniel Kahn Gillmor wrote:
> Hi git folks--
>
> I understand that git tags can be easily renamed. for example:
>
> git tag push origin refs/tags/v0.0.3:refs/tags/v2.3.4
>
> However, for tags signed with any recent version of git, the tag name is
> also included in the s
Hey Junio!
On Wed, 20 Mar 2019 12:13:47 +0900 Junio C Hamano wrote:
> * ra/t3600-test-path-funcs (2019-03-08) 3 commits
> - t3600: use helpers to replace test -d/f/e/s
> - t3600: modernize style
> - test functions: add function `test_file_not_empty`
>
> A GSoC micro.
>
> Will merge to 'next
Hi Santiago--
On Wed 2019-03-20 10:20:57 -0400, Santiago Torres Arias wrote:
> This has been known for a whlie now[1]. The consensus back then was that
> this information was up to higher-level integrators to verify using
> means like e.g., --format.
>
> [1] https://public-inbox.org/git/xmqqk2hzld
On 03/20, Jeff King wrote:
> On Tue, Mar 19, 2019 at 11:18:26PM +, Thomas Gummerer wrote:
>
> > From a quick search I couldn't find where 'git diff' actually parses
> > the '-v' argument, but I wonder if we should actually disallow it, in
> > case we want to use it for something else in the fu
On 03/20, Junio C Hamano wrote:
> Thomas Gummerer writes:
>
> > Subject: [PATCH] stash: setup default diff output format if necessary
> >
> > In the scripted 'git stash show' when no arguments are passed, we just
> > pass '--stat' to 'git diff'. When any argument is passed to 'stash
> > show', w
On 2019.03.19 19:03, Phillip Wood wrote:
> From: Phillip Wood
>
> When the builtin rebase starts an interactive rebase it parses the
> options and then repackages them and forks `rebase--interactive`. This
> series refactors rebase--interactive so that interactive rebases can
> be started by the
On Wed, 20 Mar 2019 at 12:50, Nguyễn Thái Ngọc Duy wrote:
> + OPT_CALLBACK_F(0, "no-prefix", options, NULL,
> + N_("no not show any source or destination
> prefix"),
> + PARSE_OPT_NONEG | PARSE_OPT_NOARG,
> diff_opt_no_prefi
On Wed, 20 Mar 2019 at 12:48, Nguyễn Thái Ngọc Duy wrote:
> + OPT_FILENAME('O', NULL, &options->orderfile,
> +N_("override diff.orderFile configuration
> variable")),
This doesn't really tell me *why* I would want to provide -O. Or put
another way, there
On Wed, Mar 20, 2019 at 01:22:22PM +0100, Martin Ågren wrote:
> > +#define OPT_REF_SORT(var) \
> > + OPT_CALLBACK_F(0, "sort", (var), \
> > + N_("key"), N_("field name to sort"), \
> > + PARSE_OPT_NONEG, parse_opt_ref_sorting)
>
> This one is not id
On Wed, 20 Mar 2019 at 12:59, Nguyễn Thái Ngọc Duy wrote:
>
> mark one more string for translation while at there.
s/^m/M/
> + OPT_CALLBACK_F(0, "ws-error-highlight", options, N_(""),
> + N_("highlight whitespaces errors in the
> context, old or new li
On Tue, 19 Mar 2019 at 04:14, Jeff King wrote:
>
> On Sun, Mar 17, 2019 at 07:35:59PM +0100, Martin Ågren wrote:
>
> > I've taught `doc-diff` a few new knobs to support usage like
> >
> > $ ./doc-diff --from-asciidoc --to-asciidoctor HEAD HEAD
>
> Very nice. All the patches look good to me.
Tha
Jeff King wrote:
> On Tue, Mar 19, 2019 at 08:12:54AM +0100, Martin Ågren wrote:
>
>>> I just tried with asciidoc 2.0.0.rc.2, which came out last week. It does
>>> seem to work from the command line:
>>>
>>> $ make USE_ASCIIDOCTOR=Yes \
>>> ASCIIDOC_DOCBOOK=docbook5 \
>>> ASCII
Hi,
Martin Ågren wrote:
> On Sun, 17 Mar 2019 at 20:44, Todd Zullinger wrote:
>> Martin Ågren wrote:
>> +ASCIIDOC_EXTRA += -a mansource="Git $(GIT_VERSION)" -a manmanual="Git
>> Manual"
>
> So to be honest, I still don't understand how this works, but it does,
> great. I really need to improve
From: Jeff King
Normally code that is checking config before we've decided to do
setup_git_directory() would use read_early_config(), which uses
discover_git_directory() to tentatively see if we're in a repo,
and if so to add it to the config sequence.
But list_cmds() uses the caching configset
Since e51bdea6d3 ("git: read local config in --list-cmds", 2019-03-01),
the completion.commands variable respects repo-level configuration. Use
__git which ensures that the proper repo config is consulted if the
command line contains 'git -C /some/other/repo'.
Suggested-by: SZEDER Gábor
Signed-o
From: Jeff King
Commit 6532f3740b ("completion: allow to customize the completable
command list", 2018-05-20) tried to allow multiple space-separated
entries in completion.commands. To do this, it copies each parsed token
into a strbuf so that the result is NUL-terminated.
However, for tokens st
6532f3740b ("completion: allow to customize the completable command
list", 2018-05-20) added the completion.commands config variable.
Multiple commands may be added or removed, separated by a space.
Demonstrate the failure of multiple removals.
Signed-off-by: Todd Zullinger
---
t/t9902-completi
Hi,
Duy Nguyen wrote:
> You probably want to drop the comment block about repository setup
> inside list_cmds_by_config() too.
You're right, of course. Thanks Duy. :)
That's the only change since v2.
Other than a follow-up to update the commit reference in 4/4
after 1/4 is in the final form on
Dear Friend,
I am Ms Safi Kabore work with the department of Audit and accounting manager
here in the Bank,
There is this fund that was keep in my custody years ago,please i need your
assistance for the transferring of thIs fund to your bank account for both of
us benefit for life time invest
Hi Elijah,
Sorry for the late reply, I've been mulling over it for the past couple
of days.
On Mon, Mar 18, 2019 at 10:59:56AM -0700, Elijah Newren wrote:
> Hi Denton,
>
> Thanks for working on this. Some thoughts...
>
> On Sun, Mar 17, 2019 at 4:09 AM Denton Liu wrote:
> >
> > The documentat
Elijah Newren writes:
> On Wed, Mar 20, 2019 at 8:09 AM Sergey Organov wrote:
>>
>> Junio C Hamano writes:
>>
>> [...]
>>
>> > But I do have a very strong opinion against adding yet another
>> > option that takes an optional argument. If we want to allow
>> > cherry-picking a merge commit just
Dear,
It is about my late client a national of your country. Urgent response
needed for More details about his (WILL)..
Kind Regards.
Mrs. Annabelle Edo.
On Wed, Mar 20, 2019 at 8:09 AM Sergey Organov wrote:
>
> Junio C Hamano writes:
>
> [...]
>
> > But I do have a very strong opinion against adding yet another
> > option that takes an optional argument. If we want to allow
> > cherry-picking a merge commit just as easy as cherrry-picking a
> >
On Mon, Mar 18, 2019 at 12:07 PM Ævar Arnfjörð Bjarmason
wrote:
> On Mon, Mar 18 2019, Elijah Newren wrote:
>
> > On Sun, Mar 17, 2019 at 6:41 AM Ævar Arnfjörð Bjarmason
> > wrote:
> >> On Sun, Mar 17 2019, Denton Liu wrote:
> >>
> Some of this thread's confusing, and on re-reading I see my repl
Hi,
This has been known for a whlie now[1]. The consensus back then was that
this information was up to higher-level integrators to verify using
means like e.g., --format.
This is implemented in for example pacman/devtools here[2]. We published
a paper with a more thorough security model here[3],
On Wed, Mar 20, 2019 at 8:53 PM Elijah Newren wrote:
> So, I think we do need something (eventually at least). Would you
> prefer we dropped this patch from Duy and instead made 'checkout -m'
> abort when the index is dirty?
I have no problem with this. Still scratching my head wondering if
t720
On Tue, Mar 19, 2019 at 7:50 PM Junio C Hamano wrote:
>
> Duy Nguyen writes:
>
> > Kinda. But "--force --merge" makes no sense. --force discards all
> > local changes by definition, which means you can't have conflicts and
> > will not need --merge. I think this is the reason why we die() out
> >
Hi git folks--
I understand that git tags can be easily renamed. for example:
git tag push origin refs/tags/v0.0.3:refs/tags/v2.3.4
However, for tags signed with any recent version of git, the tag name is
also included in the signed material:
0 dkg@test:~$ git tag -v v0.0.3
object
On Wed, 20 Mar 2019 at 09:17, Jeff King wrote:
> - since this was cut-and-pasted to four different spots, let's define
> a single OPT_REF_SORT() macro that we can use everywhere
Indeed, all four are identical. And FWIW I failed to find a fifth caller
anywhere (I looked for "OPT_CALLBACK.*so
On Tue, Mar 19, 2019 at 2:10 AM Elijah Newren wrote:
>
> On Sun, Mar 17, 2019 at 7:03 PM Junio C Hamano wrote:
> >
> > Elijah Newren writes:
> >
> > > I don't see why even makes sense to use with --orphan;
> > > you should error if both are given, IMO. The point of --orphan is to
> > > create
Junio C Hamano writes:
[...]
> But I do have a very strong opinion against adding yet another
> option that takes an optional argument. If we want to allow
> cherry-picking a merge commit just as easy as cherrry-picking a
> single-parent commit, "git cherry-pick -m merge" (assuming 'merge'
> is
On Tue, Mar 19, 2019 at 04:20:13PM -0700, Dave Huseby wrote:
> Fix the way GPG keyrings are imported during testing to prevent GPG from
> prompting for approval to change the default config. This appears to have no
> adverse affects on GPG users with "normal" configurations but fixes the
> always-
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
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
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 df4303de4e..8f79d3f002 100644
--- a/diff.c
+++ b/diff.c
@@ -4862,6 +4862,20 @@ static int diff_opt_color_moved(const struc
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
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
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 e2f515a7da..df4303de4e 100644
--- a/diff.c
+++ b/diff.c
@@ -4841,6
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 045fdbb882..e2f515a7da 100644
--- a/diff.c
+++ b/diff.c
@@ -4573,50 +4573
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 30baf21021..2d34dc878e 100644
--- a/diff.c
+++ b/diff.c
@@ -5255,6 +5255,12 @@ static void prep_parse_options
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 2d34dc878e..4ab5b3c06a 100644
--- a/diff.c
+++ b/diff.c
@@ -5010,6 +5010,18 @@ static int diff_opt_ignore_submodules(const struct
opti
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 4ab5b3c06a..045fdbb882 100644
--- a/diff.c
+++ b/diff.c
@@ -5022,6 +5022,18 @@ static int diff_opt_line_prefix(const struct option *opt,
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 f290dfe6be..a2abc7e5b0 100644
--- a/diff.c
+++ b/diff.c
@@ -5283,6 +5283,8 @@ static void prep_parse_options(struct diff_options
*options)
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 3eace63172..f290dfe6be 100644
--- a/diff.c
+++ b/diff.c
@@ -5238,6 +5238,9 @@ static void prep_parse_options(struct diff_options
*options)
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 694f32148c..6e84af1cce 100644
--- a/diff.c
+++ b/diff.c
@@ -4736,10 +4736,13 @@ static uns
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 21c7a6b1a1..694f32148c 100644
--- a/diff.c
+++ b/diff.c
@@ -4799,12 +4799,15 @@ static int di
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 a2abc7e5b0..e198129353 100644
--- a/diff.c
+++ b/diff.c
@@ -5056,6 +5056,28 @@ static int diff_opt_patience(const struct
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 639b166c79..21c7a6b1a1 100644
--- a/diff.c
+++ b/diff.c
@@ -4617,22 +4617,6 @@ static int opt_arg(const char *arg, int arg_short, const
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 e198129353..639b166c79 100644
--- a/diff.c
+++ b/diff.c
@@ -5391,6 +5391,12 @@ static void prep_parse_options(struct diff_options
*options)
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,
Gotta keep pumping until everything is out! This is the last part to
finish converting diff.c to use parse_options().
The two commands 'range-diff' and 'diff --no-index' are also updated
to do parse_options() directly, which is the end game (i.e. the end of
diff_opt_parse(), but that can't happen
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..8fdcdcc8ff 100644
--- a/diff.c
+++ b/diff.c
@@ -4801,17 +4801,18 @@ s
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 8fdcdcc8ff..3eace63172 100644
--- a/diff.c
+++ b/diff.c
@@ -5352,6 +5352,12 @@ static void prep_parse_options(struct diff_options
*options)
Hi everyone,
The 49th edition of Git Rev News is now published:
https://git.github.io/rev_news/2019/03/20/edition-49/
Thanks a lot to the contributor: Luca Milanesio!
Enjoy,
Christian, Jakub, Markus and Gabriel.
On Wed, Mar 20, 2019 at 3:13 AM Junio C Hamano wrote:
> * tg/stash-in-c-show-default-to-p-fix (2019-03-20) 1 commit
> - stash: setup default diff output format if necessary
> (this branch uses ps/stash-in-c; is tangled with js/stash-in-c-pathspec-fix
> and tb/stash-in-c-unused-param-fix.)
>
>
1 - 100 of 122 matches
Mail list logo