<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/bundle.c, branch v2.26.1</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.26.1</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.26.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-11-11T02:46:29Z</updated>
<entry>
<title>bundle-verify: add --quiet</title>
<updated>2019-11-11T02:46:29Z</updated>
<author>
<name>Robin H. Johnson</name>
<email>robbat2@gentoo.org</email>
</author>
<published>2019-11-10T20:41:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e0eba649e8c2a4271e3bcfb9ebcd358900d425c9'/>
<id>urn:sha1:e0eba649e8c2a4271e3bcfb9ebcd358900d425c9</id>
<content type='text'>
Add --quiet to git-bundle verify as proposed on the mailing list [1].

Reference: https://www.mail-archive.com/git@vger.kernel.org/msg182844.html &lt;robbat2-20190806T191156-796782357Z@orbis-terrarum.net&gt;
Signed-off-by: Robin H. Johnson &lt;robbat2@gentoo.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bundle-create: progress output control</title>
<updated>2019-11-11T02:46:28Z</updated>
<author>
<name>Robin H. Johnson</name>
<email>robbat2@gentoo.org</email>
</author>
<published>2019-11-10T20:41:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=79862b6b77c07b88ae1137fa602bf2046f979ad9'/>
<id>urn:sha1:79862b6b77c07b88ae1137fa602bf2046f979ad9</id>
<content type='text'>
Support the progress output options from pack-objects in git-bundle's
create subcommand. Most notably, this provides --quiet as requested on
the git mailing list per [1]

Reference: https://www.mail-archive.com/git@vger.kernel.org/msg182844.html &lt;robbat2-20190806T191156-796782357Z@orbis-terrarum.net&gt;
Signed-off-by: Robin H. Johnson &lt;robbat2@gentoo.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bundle: framework for options before bundle file</title>
<updated>2019-11-11T02:46:26Z</updated>
<author>
<name>Robin H. Johnson</name>
<email>robbat2@gentoo.org</email>
</author>
<published>2019-11-10T20:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=73c3253d75e1268946834e72147481fc9a66cc90'/>
<id>urn:sha1:73c3253d75e1268946834e72147481fc9a66cc90</id>
<content type='text'>
Make it possible for any of the git-bundle subcommands to include
options:
- before the sub-command
- after the sub-command, before the bundle filename

There is an immediate gain in support for help with all of the
sub-commands, where 'git bundle list-heads -h' previously returned an
error.

Downside here is an increase in code duplication that cannot be
trivially avoided short of shared global static options.

Signed-off-by: Robin H. Johnson &lt;robbat2@gentoo.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>create_bundle(): drop unused "header" parameter</title>
<updated>2019-01-24T20:35:44Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2019-01-24T13:11:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fcb133e978e98cf92de3ec7dedd4969802191b13'/>
<id>urn:sha1:fcb133e978e98cf92de3ec7dedd4969802191b13</id>
<content type='text'>
There's no need to pass a header struct to create_bundle(); it writes
the header information directly to a descriptor (and does not report
back details to the caller).

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>bundle.c: remove the_repository references</title>
<updated>2018-11-12T05:50:06Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-11-10T05:49:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=74ae4b638d0acf6ab155422152d7ad98fdbe6f6b'/>
<id>urn:sha1:74ae4b638d0acf6ab155422152d7ad98fdbe6f6b</id>
<content type='text'>
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>
<entry>
<title>bundle: use prefix_filename with bundle path</title>
<updated>2017-03-21T18:18:41Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-03-21T01:31:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3b754eedd58636926d07b14a34799a3aa7b8ebc2'/>
<id>urn:sha1:3b754eedd58636926d07b14a34799a3aa7b8ebc2</id>
<content type='text'>
We may take the path to a bundle file as an argument, and
need to adjust the filename based on the prefix we
discovered while setting up the git directory. We do so
manually into a fixed-size buffer, but using
prefix_filename() is the normal way.

Besides being more concise, there are two subtle
improvements:

  1. The original inserted a "/" between the two paths, even
     though the "prefix" argument always has the "/"
     appended. That means that:

       cd subdir &amp;&amp; git bundle verify ../foo.bundle

     was looking at (and reporting) subdir//../foo.bundle.
     Harmless, but ugly.  Using prefix_filename() gets this
     right.

  2. The original checked for an absolute path by looking
     for a leading '/'. It should have been using
     is_absolute_path(), which also covers more cases on
     Windows (backslashes and dos drive prefixes).

     But it's easier still to just pass the name to
     prefix_filename(), which handles this case
     automatically.

Note that we'll just leak the resulting buffer in the name
of simplicity, since it needs to last through the duration
of the program anyway.

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>bundle: verify arguments more strictly</title>
<updated>2015-05-08T17:52:11Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2015-05-08T08:02:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7886cfa08054046a7a82726be4b8c109b2ba1344'/>
<id>urn:sha1:7886cfa08054046a7a82726be4b8c109b2ba1344</id>
<content type='text'>
The `verify` and `create` subcommands of the bundle builtin do
not properly verify the command line arguments that have been
passed in. While the `verify` subcommand accepts an arbitrary
amount of ignored arguments the `create` subcommand does not
complain about being passed too few arguments, resulting in a
bogus call to `git rev-list`. Fix these errors by verifying that
the correct amount of arguments has been passed in.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&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>Teach progress eye-candy to fetch_refs_from_bundle()</title>
<updated>2011-09-19T18:07:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-09-18T23:52:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=be042aff24c8a17565934874f5d2eebd77ab2562'/>
<id>urn:sha1:be042aff24c8a17565934874f5d2eebd77ab2562</id>
<content type='text'>
With the usual "git" transport, a large-ish transfer with "git fetch" and
"git pull" give progress eye-candy to avoid boring users.  However, not
when they are reading from a bundle. I.e.

    $ git pull ../git-bundle.bndl master

This teaches bundle.c:unbundle() to give "-v" option to index-pack and
tell it to give progress bar when transport decides it is necessary.

The operation in the other direction, "git bundle create", could also
learn to honor --quiet but that is a separate issue.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>i18n: git-bundle basic messages</title>
<updated>2011-03-10T07:52:57Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2011-02-22T23:42:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c7c4efacf1ea100ac1cd5c2f33d1b6d342b39325'/>
<id>urn:sha1:c7c4efacf1ea100ac1cd5c2f33d1b6d342b39325</id>
<content type='text'>
Signed-off-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>Use angles for placeholders consistently</title>
<updated>2010-10-08T19:29:52Z</updated>
<author>
<name>Štěpán Němec</name>
<email>stepan.nemec@gmail.com</email>
</author>
<published>2010-10-08T17:31:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=62b4698e551c29b3d2539a764ad0e93cfff53c03'/>
<id>urn:sha1:62b4698e551c29b3d2539a764ad0e93cfff53c03</id>
<content type='text'>
Signed-off-by: Štěpán Němec &lt;stepnem@gmail.com&gt;
Acked-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
