Merging one file only

4 messages, 3 authors, 2016-06-15 · open the first message on its own page

Merging one file only

From: Maïeul <hidden>
Date: 2016-06-15 22:51:51

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 ?

Thank a lot !!



--
View this message in context: http://git.661346.n2.nabble.com/Merging-one-file-only-tp6709333p6709333.html
Sent from the git mailing list archive at Nabble.com.

Re: Merging one file only

From: Michael Witten <hidden>
Date: 2016-06-15 22:51:51

On Sun, Aug 21, 2011 at 20:33, Maïeul [off-list ref] 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?

Re: Merging one file only

From: Maïeul Rouquette <hidden>
Date: 2016-06-15 22:51:51

Le 21 août 2011 à 23:32, Michael Witten a écrit :
On Sun, Aug 21, 2011 at 20:33, Maïeul [off-list ref] wrote:
quoted
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 :)-

Re: Merging one file only

From: PJ Weisberg <hidden>
Date: 2016-06-15 22:51:51

On Sunday, August 21, 2011, Maïeul Rouquette [off-list ref] wrote:
Le 21 août 2011 à 23:32, Michael Witten a écrit :
quoted
On Sun, Aug 21, 2011 at 20:33, Maïeul [off-list ref] wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help