git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: tags and patches

From
Geoff Russell <geoffrey.russell@gmail.com>
Date
Jun 14, 2007, 02:50 UTC
Message-ID
<93c3eada0706131950y7a27cf39i1326d34535e7f5e9@mail.gmail.com>
In-Reply-To
<20070614021939.GA18325@segfault.peff.net>
On 6/14/07, Jeff King <peff@peff.net> wrote:
Show 33 quoted lines
> On Thu, Jun 14, 2007 at 11:35:35AM +0930, Geoff Russell wrote:
>
> > I'm trying to work out if I want to use git to manage a software
> > distribution problem. I distribute release v1.0 to people then later I
> > want to email them a patch to take them from v1.0 to v1.1.  I can
> > probably live without the tags, but am just surprised that patches
> > don't send them.
>
> Patches represent differences in _content_, but they don't show history.
> So while git supports a somewhat extended patch format (supporting
> things like renames and file modes), patches don't know anything about
> branches, parent commits, or tags.
>
> If you are trying to take people from v1.0 to v1.1, the best way depends
> on their setup:
>
>   - If they are all running git, then you can have them 'pull' from your
>     repository
>   - If you don't like that for some reason, you can send them a bundle,
>     which is the moral equivalent of pulling (except that you've pushed
>     through a non-interactive medium, but the end result in their
>     repository is the same)
>   - If they aren't running git, then you can use git to prepare the
>     patch by tagging your own repository, and then creating either a
>     patch series (git-format-patch v1.0..v1.1) or a single big patch
>     (git-diff v1.0..v1.1). But either way, what would it mean to have a
>     tag in the patch, since they don't have a tagging system at the
>     other end?
>
> I'm not really sure what you're trying to accomplish; if you can be more
> concrete, we might be able to offer more concrete solutions (or maybe
> the answer you were looking for was simply, "you want bundles, not
> patches").

Ok (in english we have an expression "the penny has dropped" :)), I understand my confusion and no longer am surprised that patches don't have tags! I think that we will ensure everyone is running git (but we will ssh into their machines and do the appropriate pulls).

Many thanks for your help and patience,

Cheers, Geoff

>
> -Peff
>
Previous: Jeff KingNext: Johannes Schindelin
Message 9 of 10 in “tags and patches”
  1. Geoff RussellJun 13, 2007
  2. Pierre HabouzitJun 13, 2007
  3. Geoff RussellJun 13, 2007
  4. Johannes SchindelinJun 13, 2007
  5. Geoff RussellJun 14, 2007
  6. Johannes SchindelinJun 14, 2007
  7. Geoff RussellJun 14, 2007
  8. Jeff KingJun 14, 2007
  9. Geoff RussellJun 14, 2007
  10. Johannes SchindelinJun 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.