git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Empty bundles are not useless
@ 2020-07-14 13:58 R. Lemos
  2020-07-14 21:47 ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: R. Lemos @ 2020-07-14 13:58 UTC (permalink / raw)
  To: git

When working disconnected (sending bundles back and forth) it is
useful to make bundles like this:

$ git bundle create /tmp/my.bundle master ^disconnected/master

This way I pack all new commits since the last updated from
`disconnected` remote.

But if my local copy is up-to-date, git bundle refuses to create an
empty bundle, since there are no commits to send.

However it would be nice to at least send the information that my
local branch `master` is up-to-date. That is, the bundle would just
convey that my local `master` points to a given commit (even though
this commit is already on the remote site). This way, when I upload
this bundle to the remote site, then bring back changes made there,
the remote site will know which commits I already have.

Thanks.
Rodrigo Lemos

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-14 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14 13:58 Empty bundles are not useless R. Lemos
2020-07-14 21:47 ` Johannes Schindelin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).