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

Branches merging by only overwrite files

From
BLBen Lau <benlau@ust.hk>
Date
Dec 11, 2005, 08:30 UTC
Message-ID
<439BE3B9.3040308@ust.hk>
Hi,
    I am looking for a solution to merge two branches but do not perform 
file level merge. Instead, I wish the result file is the copy from any 
one of the branches.
    For example, assumes it has two branches A and B,  some of the files 
are modified in both of them. In this case, `/usr/bin/merge` could not 
be execated, it just have to choose the revision from branch A and 
discards all the changes from B. For the rest of files, it just simply 
choose the newest copy from A or B.
    How can I perform this action?
Thanks in advance.
Next: Junio C Hamano
Message 1 of 3 in “Branches merging by only overwrite files”
  1. Ben LauDec 11, 2005
  2. Junio C HamanoDec 11, 2005
  3. Ben LauDec 11, 2005

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.