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

Re: Merging one file only

From
PJ Weisberg <pjweisberg@gmail.com>
Date
Aug 21, 2011, 21:52 UTC
Message-ID
<CAJsNXT=UkNT4kk1t9Ji5h_vm+ApahzaTzBwrzwPJCuWMzezw7Q@mail.gmail.com>
In-Reply-To
<6EE456FC-9671-4CAF-9067-743AE2526717@maieul.net>
On Sunday, August 21, 2011, Maïeul Rouquette <maieul@maieul.net> wrote:
Show 21 quoted lines
>
> Le 21 août 2011 à 23:32, Michael Witten a écrit :
>
>> On Sun, Aug 21, 2011 at 20:33, Maïeul <maieul@maieul.net> wrote:
>>> Hello,
>>>
>>> my problem is :
>>> - I have 2 branches : "master" and "sty"
>>> - In the branch sty, I have commit that i don't want to merge on the branch
>>> master. The only file that I want merge are the *dtx files.
>>>
>>> My question is : how can i do to merge *dtx files from "sty" to "master",
>>> and have log of commit on the *dtx ? Is it possible ?
>>
>> There are a number of ways to do this, some more general than others.
>>
>> Do you know all of the names of the files for which you don't want
>> associated commits? Do the files that you don't want get changed in
>> some of the commits that you do want?
> I found the solution "git merge hashofcommit". My commits one the file are only on the file, so the solution is very simple !
> Thank for helping :)-

Good if the commits you don't want come *after* the commits you do want.  Use "git cherry-pick <hash>" if you want one commit and *not* all the commits leading up to it.

Previous: Maïeul Rouquette
Message 4 of 4 in “Merging one file only”
  1. MaïeulAug 21, 2011
  2. Michael WittenAug 21, 2011
  3. Maïeul RouquetteAug 21, 2011
  4. PJ WeisbergAug 21, 2011

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.