<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/range-diff.c, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2021-03-29T21:06:08Z</updated>
<entry>
<title>column, range-diff: downcase option description</title>
<updated>2021-03-29T21:06:08Z</updated>
<author>
<name>Chinmoy Chakraborty</name>
<email>chinmoy12c@gmail.com</email>
</author>
<published>2021-03-29T14:46:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5ee90326dceb23744a86ad10a60ccda9a2dc3f30'/>
<id>urn:sha1:5ee90326dceb23744a86ad10a60ccda9a2dc3f30</id>
<content type='text'>
It is customary not to begin the help text for each option given to
the parse-options API with a capital letter. Various (sub)commands'
option arrays don't follow the guideline provided by the parse_options
Documentation regarding the descriptions.

Downcase the first word of some option descriptions for "column"
and "range-diff".

Signed-off-by: Chinmoy Chakraborty &lt;chinmoy12c@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/range-diff-one-side-only'</title>
<updated>2021-02-18T01:21:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-02-18T01:21:41Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=dadc91ff0c15b655070ad334a27a734e91635bd5'/>
<id>urn:sha1:dadc91ff0c15b655070ad334a27a734e91635bd5</id>
<content type='text'>
The "git range-diff" command learned "--(left|right)-only" option
to show only one side of the compared range.

* js/range-diff-one-side-only:
  range-diff: offer --left-only/--right-only options
  range-diff: move the diffopt initialization down one layer
  range-diff: combine all options in a single data structure
  range-diff: simplify code spawning `git log`
  range-diff: libify the read_patches() function again
  range-diff: avoid leaking memory in two error code paths
</content>
</entry>
<entry>
<title>range-diff: offer --left-only/--right-only options</title>
<updated>2021-02-07T05:14:31Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2021-02-05T14:46:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=1e79f973266cfe0e3bab0e26e869b682078e457d'/>
<id>urn:sha1:1e79f973266cfe0e3bab0e26e869b682078e457d</id>
<content type='text'>
When comparing commit ranges, one is frequently interested only in one
side, such as asking the question "Has this patch that I submitted to
the Git mailing list been applied?": one would only care about the part
of the output that corresponds to the commits in a local branch.

To make that possible, imitate the `git rev-list` options `--left-only`
and `--right-only`.

This addresses https://github.com/gitgitgadget/git/issues/206

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>range-diff: combine all options in a single data structure</title>
<updated>2021-02-07T05:14:31Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2021-02-05T14:46:11Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=f1ce6c191e9d15ce78041d8b6496c246b10d9b2d'/>
<id>urn:sha1:f1ce6c191e9d15ce78041d8b6496c246b10d9b2d</id>
<content type='text'>
This will make it easier to implement the `--left-only` and
`--right-only` options.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>range-diff/format-patch: refactor check for commit range</title>
<updated>2021-01-28T06:01:49Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2021-01-27T16:37:22Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=679b5916cdafdcfa9fb36c31dbf53d7e4aa0af0b'/>
<id>urn:sha1:679b5916cdafdcfa9fb36c31dbf53d7e4aa0af0b</id>
<content type='text'>
Currently, when called with exactly two arguments, `git range-diff`
tests for a literal `..` in each of the two. Likewise, the argument
provided via `--range-diff` to `git format-patch` is checked in the same
manner.

However, `&lt;commit&gt;^!` is a perfectly valid commit range, equivalent to
`&lt;commit&gt;^..&lt;commit&gt;` according to the `SPECIFYING RANGES` section of
gitrevisions[7].

In preparation for allowing more sophisticated ways to specify commit
ranges, let's refactor the check into its own function.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>strvec: convert builtin/ callers away from argv_array name</title>
<updated>2020-07-28T22:02:18Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2020-07-28T20:24:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=22f9b7f3f59549735a480042a4b9ce292eedfae0'/>
<id>urn:sha1:22f9b7f3f59549735a480042a4b9ce292eedfae0</id>
<content type='text'>
We eventually want to drop the argv_array name and just use strvec
consistently. There's no particular reason we have to do it all at once,
or care about interactions between converted and unconverted bits.
Because of our preprocessor compat layer, the names are interchangeable
to the compiler (so even a definition and declaration using different
names is OK).

This patch converts all of the files in builtin/ to keep the diff to a
manageable size.

The conversion was done purely mechanically with:

  git ls-files '*.c' '*.h' |
  xargs perl -i -pe '
    s/ARGV_ARRAY/STRVEC/g;
    s/argv_array/strvec/g;
  '

and then selectively staging files with "git add builtin/". We'll deal
with any indentation/style fallouts separately.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>range-diff: clear `other_arg` at end of function</title>
<updated>2019-12-06T20:36:53Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-12-06T20:16:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=abcf8573005d548fe213aa7b4579394fa18692a1'/>
<id>urn:sha1:abcf8573005d548fe213aa7b4579394fa18692a1</id>
<content type='text'>
We were leaking memory by not clearing `other_arg` after we were done
using it. Clear it after we've finished using it.

Note that this isn't strictly necessary since the memory will be
reclaimed once the command exits. However, since we are releasing the
strbufs, we should also clear `other_arg` for consistency.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>range-diff: pass through --notes to `git log`</title>
<updated>2019-11-21T00:29:52Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-11-20T21:18:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=bd361918868284c06a438b832dbc95e11266fd5b'/>
<id>urn:sha1:bd361918868284c06a438b832dbc95e11266fd5b</id>
<content type='text'>
When a commit being range-diff'd has a note attached to it, the note
will be compared as well. However, if a user has multiple notes refs or
if they want to suppress notes from being printed, there is currently no
way to do this.

Pass through `--[no-]notes[=&lt;ref&gt;]` to the `git log` call so that this
option is customizable.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin: consistently pass cmd_* prefix to parse_options</title>
<updated>2019-05-13T05:22:53Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2019-05-09T21:28:51Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=d64db5b334f8822284bcc7068e093d8fbfb46dd9'/>
<id>urn:sha1:d64db5b334f8822284bcc7068e093d8fbfb46dd9</id>
<content type='text'>
If a builtin uses RUN_SETUP to request that git.c enter the repository
directory, we'll get passed in a "prefix" variable with the path to the
original directory.  It's important to pass this to parse_options(),
since we may use it to fix up relative OPT_FILENAME() options. Some
builtins don't bother; let's make sure we do so consistently.

There may not be any particular bugs fixed here; OPT_FILENAME is
actually pretty rare, and none of these commands use it directly.
However, this does future-proof us against somebody adding an option
that uses it and creating a subtle bug that only shows up when you're in
a subdirectory of the repository.

In some cases, like hash-object and upload-pack, we don't specify
RUN_SETUP, so we know the prefix will always be empty. It's still worth
passing the variable along to keep the idiom consistent across all
builtins (and of course it protects us if they ever _did_ switch to
using RUN_SETUP).

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>range-diff: use parse_options() instead of diff_opt_parse()</title>
<updated>2019-03-24T13:21:24Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2019-03-24T08:20:12Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c380a48c8b40331dd6466d6b565af6d44c7b11bf'/>
<id>urn:sha1:c380a48c8b40331dd6466d6b565af6d44c7b11bf</id>
<content type='text'>
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 &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
