<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion, branch v2.35.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.35.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.35.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-12-15T17:39:47Z</updated>
<entry>
<title>Merge branch 'en/zdiff3'</title>
<updated>2021-12-15T17:39:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-12-15T17:39:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4ce498baa3976cf96d3feb4215a486dd47ec2e7b'/>
<id>urn:sha1:4ce498baa3976cf96d3feb4215a486dd47ec2e7b</id>
<content type='text'>
"Zealous diff3" style of merge conflict presentation has been added.

* en/zdiff3:
  update documentation for new zdiff3 conflictStyle
  xdiff: implement a zealous diff3, or "zdiff3"
</content>
</entry>
<entry>
<title>Merge branch 'yn/complete-date-format-options'</title>
<updated>2021-12-10T22:35:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-12-10T22:35:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4b1197ab5a74982fd09bda07d17325f1261975ee'/>
<id>urn:sha1:4b1197ab5a74982fd09bda07d17325f1261975ee</id>
<content type='text'>
The completion script (in contrib/) learns that the "--date"
option of commands from the "git log" family takes "human" and
"auto" as valid values.

* yn/complete-date-format-options:
  completion: add human and auto: date format
</content>
</entry>
<entry>
<title>xdiff: implement a zealous diff3, or "zdiff3"</title>
<updated>2021-12-01T22:45:58Z</updated>
<author>
<name>Phillip Wood</name>
<email>phillip.wood@dunelm.org.uk</email>
</author>
<published>2021-12-01T00:05:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4496526f80b3e4952036550b279eff8d1babd60a'/>
<id>urn:sha1:4496526f80b3e4952036550b279eff8d1babd60a</id>
<content type='text'>
"zdiff3" is identical to ordinary diff3 except that it allows compaction
of common lines on the two sides of history at the beginning or end of
the conflict hunk.  For example, the following diff3 conflict:

    1
    2
    3
    4
    &lt;&lt;&lt;&lt;&lt;&lt;
    A
    B
    C
    D
    E
    ||||||
    5
    6
    ======
    A
    X
    C
    Y
    E
    &gt;&gt;&gt;&gt;&gt;&gt;
    7
    8
    9

has common lines 'A', 'C', and 'E' on the two sides.  With zdiff3, one
would instead get the following conflict:

    1
    2
    3
    4
    A
    &lt;&lt;&lt;&lt;&lt;&lt;
    B
    C
    D
    ||||||
    5
    6
    ======
    X
    C
    Y
    &gt;&gt;&gt;&gt;&gt;&gt;
    E
    7
    8
    9

Note that the common lines, 'A', and 'E' were moved outside the
conflict.  Unlike with the two-way conflicts from the 'merge'
conflictStyle, the zdiff3 conflict is NOT split into multiple conflict
regions to allow the common 'C' lines to be shown outside a conflict,
because zdiff3 shows the base version too and the base version cannot be
reasonably split.

Note also that the removing of lines common to the two sides might make
the remaining text inside the conflict region match the base text inside
the conflict region (for example, if the diff3 conflict had '5 6 E' on
the right side of the conflict, then the common line 'E' would be moved
outside and both the base and right side's remaining conflict text would
be the lines '5' and '6').  This has the potential to surprise users and
make them think there should not have been a conflict, but there
definitely was a conflict and it should remain.

Based-on-patch-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Co-authored-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Phillip Wood &lt;phillip.wood123@gmail.com&gt;
Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tp/send-email-completion'</title>
<updated>2021-11-29T23:41:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-11-29T23:41:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7c2abf1a83efa13ffc03a3847f774cf85ffce913'/>
<id>urn:sha1:7c2abf1a83efa13ffc03a3847f774cf85ffce913</id>
<content type='text'>
The command line complation for "git send-email" options have been
tweaked to make it easier to keep it in sync with the command itself.

* tp/send-email-completion:
  send-email docs: add format-patch options
  send-email: programmatically generate bash completions
</content>
</entry>
<entry>
<title>completion: add human and auto: date format</title>
<updated>2021-11-26T06:09:46Z</updated>
<author>
<name>Yoichi Nakayama</name>
<email>yoichi.nakayama@gmail.com</email>
</author>
<published>2021-11-23T11:27:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e685ea535312ae397ddfbf0fa2b4a90808217ca4'/>
<id>urn:sha1:e685ea535312ae397ddfbf0fa2b4a90808217ca4</id>
<content type='text'>
human was introduced in acdd37769de8b0fe37a74bfc0475b63bdc55e9dc
auto:* was introduced in 2fd7c22992d37469db957e9a4d3884a6c0a4d182

Those formats were missing when other values were added to completion
at 5a59a2301f6ec9bcf1b101edb9ca33beb465842f

Signed-off-by: Yoichi Nakayama &lt;yoichi.nakayama@gmail.com&gt;
Acked-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 're/completion-fix-test-equality'</title>
<updated>2021-10-29T22:43:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-10-29T22:43:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9a95a9f230c30b44990e616dff154ab78f0aa60d'/>
<id>urn:sha1:9a95a9f230c30b44990e616dff154ab78f0aa60d</id>
<content type='text'>
Fix long-standing shell syntax error in the completion script.

* re/completion-fix-test-equality:
  completion: fix incorrect bash/zsh string equality check
</content>
</entry>
<entry>
<title>completion: fix incorrect bash/zsh string equality check</title>
<updated>2021-10-28T16:33:19Z</updated>
<author>
<name>Robert Estelle</name>
<email>robertestelle@gmail.com</email>
</author>
<published>2021-10-25T22:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=46b05852863a532a897f09a8461586f3d2d38693'/>
<id>urn:sha1:46b05852863a532a897f09a8461586f3d2d38693</id>
<content type='text'>
In the basic `[`/`test` command, the string equality operator is a
single `=`. The `==` operator is only available in `[[`, which is a
bash-ism also supported by zsh.

This mix-up was causing the following completion error in zsh:
&gt; __git_ls_files_helper:7: = not found

(That message refers to the extraneous symbol in `==` ← `=`).

This updates that comparison to use a single `=` inside the
basic `[ … ]` test conditional.

Although this fix is inconsistent with the other comparisons in this
file, which use `[[ … == … ]]`, and the two expressions are functionally
identical in this context, that approach was rejected due to a
preference for `[`.

Signed-off-by: Robert Estelle &lt;robertestelle@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: programmatically generate bash completions</title>
<updated>2021-10-28T16:04:24Z</updated>
<author>
<name>Thiago Perrotta</name>
<email>tbperrotta@gmail.com</email>
</author>
<published>2021-10-25T21:27:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2b7b75850c6cffba3f33ce99e23bd05f95640e3f'/>
<id>urn:sha1:2b7b75850c6cffba3f33ce99e23bd05f95640e3f</id>
<content type='text'>
"git send-email --git-completion-helper" only prints "format-patch"
flags. Make it print "send-email" flags as well, extracting them
programmatically from its three existing "GetOptions".

Introduce a "uniq" subroutine, otherwise --cc-cover, --to-cover and
other flags would show up twice. In addition, deduplicate flags common
to both "send-email" and "format-patch", like --from.

Remove extraneous flags: --h and --git-completion-helper.

Add trailing "=" to options that expect an argument, inline with
the format-patch implementation.

Add a completion test for "send-email --validate", a send-email flag.

Signed-off-by: Thiago Perrotta &lt;tbperrotta@gmail.com&gt;
Based-on-patch-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/retire-preserve-merges'</title>
<updated>2021-10-18T22:47:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-10-18T22:47:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=223a1bfb5821387981c700654e4edd2443c5a7fc'/>
<id>urn:sha1:223a1bfb5821387981c700654e4edd2443c5a7fc</id>
<content type='text'>
The "--preserve-merges" option of "git rebase" has been removed.

* js/retire-preserve-merges:
  sequencer: restrict scope of a formerly public function
  rebase: remove a no-longer-used function
  rebase: stop mentioning the -p option in comments
  rebase: remove obsolete code comment
  rebase: drop the internal `rebase--interactive` command
  git-svn: drop support for `--preserve-merges`
  rebase: drop support for `--preserve-merges`
  pull: remove support for `--rebase=preserve`
  tests: stop testing `git rebase --preserve-merges`
  remote: warn about unhandled branch.&lt;name&gt;.rebase values
  t5520: do not use `pull.rebase=preserve`
</content>
</entry>
<entry>
<title>Merge branch 'ti/tcsh-completion-regression-fix' into maint</title>
<updated>2021-10-12T20:51:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-10-12T20:51:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4e408f1060bc677a7d6f17d349f05203ef4b76f3'/>
<id>urn:sha1:4e408f1060bc677a7d6f17d349f05203ef4b76f3</id>
<content type='text'>
Update to the command line completion (in contrib/) for tcsh.

* ti/tcsh-completion-regression-fix:
  completion: tcsh: Fix regression by drop of wrapper functions
</content>
</entry>
</feed>
