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

Re: git-merge-subordinate

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 25, 2006, 16:11 UTC
Message-ID
<eho29l$1td$1@sea.gmane.org>
In-Reply-To
<20061025155009.GD5591@parisc-linux.org>
Matthew Wilcox wrote:
Show 7 quoted lines
> Linus doesn't like seeing unnecessary merges in his tree.  I'm not a huge
> fan of them either.  Wouldn't it be nice if we had a merge method that
> did a merge without creating a merge?  I call it git-merge-subordinate
> (since my tree is subordinate to the tree I'm pulling from).  I suppose
> you could call it 'slave' if you want to be more pithy.  Anyway, this
> is a first attempt, and it's totally cargo-cult programming; I make no
> claim that I understand what I'm doing.  But it does seem to work.
Hmmm... the --squash option to git-merge/git-pull isn't enough?
--squash::
        Produce the working tree and index state as if a real
        merge happened, but do not actually make a commit or
        move the `HEAD`, nor record `$GIT_DIR/MERGE_HEAD` to
        cause the next `git commit` command to create a merge
        commit.  This allows you to create a single commit on
        top of the current branch whose effect is the same as
        merging another branch (or more in case of an octopus).
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Matthew WilcoxNext: Johannes Schindelin
Message 2 of 4 in “git-merge-subordinate”
  1. Matthew WilcoxOct 25, 2006
  2. Jakub NarebskiOct 25, 2006
  3. Johannes SchindelinOct 25, 2006
  4. Shawn PearceOct 25, 2006

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.