* Git and Quilt @ 2012-07-09 11:57 Jimmy Thrasibule 2012-07-09 12:20 ` Konstantin Khomoutov 2012-07-09 15:38 ` Jiang Xin 0 siblings, 2 replies; 4+ messages in thread From: Jimmy Thrasibule @ 2012-07-09 11:57 UTC (permalink / raw) To: git Hello, I have a core project on which I maintain a set of patches using Quilt. This allows me to make changes to the project without touching the files so I can upgrade to new versions easily. I keep my patches and the core project in a Git repository. When I want to change something, I apply my patches using Quilt, then I revert all my changes and I just commit the resulting patch. I would like to have a branch where all my patches are applied to deploy the code but I can't find any good way to do this. If I create a new branch from master and apply the patches, I will have conflicts on the next merge. I need something to apply the patches before the merge (maybe using one of the hooks?). Any idea? -- Jimmy ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Git and Quilt 2012-07-09 11:57 Git and Quilt Jimmy Thrasibule @ 2012-07-09 12:20 ` Konstantin Khomoutov 2012-07-09 13:00 ` Jimmy Thrasibule 2012-07-09 15:38 ` Jiang Xin 1 sibling, 1 reply; 4+ messages in thread From: Konstantin Khomoutov @ 2012-07-09 12:20 UTC (permalink / raw) To: Jimmy Thrasibule; +Cc: git On Mon, 09 Jul 2012 13:57:09 +0200 Jimmy Thrasibule <thrasibule.jimmy@gmail.com> wrote: > I have a core project on which I maintain a set of patches using > Quilt. This allows me to make changes to the project without touching > the files so I can upgrade to new versions easily. > > I keep my patches and the core project in a Git repository. When I > want to change something, I apply my patches using Quilt, then I > revert all my changes and I just commit the resulting patch. > > I would like to have a branch where all my patches are applied to > deploy the code but I can't find any good way to do this. > > If I create a new branch from master and apply the patches, I will > have conflicts on the next merge. I need something to apply the > patches before the merge (maybe using one of the hooks?). Isn't what you're doing a perfect fit for rebasing [1]? That is, you keep your changes as a series of commits on top of your "upstream" branch and each time you're about to bring upstream changes in, you rebase your local branch on top on the updated upstream branch. 1. http://git-scm.com/book/en/Git-Branching-Rebasing ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Git and Quilt 2012-07-09 12:20 ` Konstantin Khomoutov @ 2012-07-09 13:00 ` Jimmy Thrasibule 0 siblings, 0 replies; 4+ messages in thread From: Jimmy Thrasibule @ 2012-07-09 13:00 UTC (permalink / raw) To: Konstantin Khomoutov; +Cc: git > Isn't what you're doing a perfect fit for rebasing [1]? > That is, you keep your changes as a series of commits on top of your > "upstream" branch and each time you're about to bring upstream changes > in, you rebase your local branch on top on the updated upstream branch. > > 1. http://git-scm.com/book/en/Git-Branching-Rebasing Yes it can do the work, but I afraid that it gets messy in a collaborative work as said at the end of the article. I prefer to maintain my patches using Quilt so everything is clear. -- Jimmy ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Git and Quilt 2012-07-09 11:57 Git and Quilt Jimmy Thrasibule 2012-07-09 12:20 ` Konstantin Khomoutov @ 2012-07-09 15:38 ` Jiang Xin 1 sibling, 0 replies; 4+ messages in thread From: Jiang Xin @ 2012-07-09 15:38 UTC (permalink / raw) To: Jimmy Thrasibule; +Cc: git 2012/7/9 Jimmy Thrasibule <thrasibule.jimmy@gmail.com>: > I have a core project on which I maintain a set of patches using Quilt. Git + Topgit is a better solution for your case. See: * http://repo.or.cz/w/topgit.git/blob/HEAD:/README E.g. In my fork of topgit, quilt patches resident in "debian/patches" directory: * https://github.com/ossxp-com/topgit/tree/master/debian/patches/t And these patches are exported from the topic branches using this command: * https://github.com/ossxp-com/topgit/blob/master/debian/rules#L53 Git also has a command which can import quilt patches as commits on to the current branch: $ git quiltimport -- Jiang Xin ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-09 15:38 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-07-09 11:57 Git and Quilt Jimmy Thrasibule 2012-07-09 12:20 ` Konstantin Khomoutov 2012-07-09 13:00 ` Jimmy Thrasibule 2012-07-09 15:38 ` Jiang Xin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).