From: Jehan Bing <jehan@orb.com>
To: git@vger.kernel.org
Cc: Michael Nahas <mike.nahas@gmail.com>
Subject: Re: Rebase and incrementing version numbers
Date: Thu, 19 Jan 2012 13:07:29 -0800 [thread overview]
Message-ID: <4F188611.20205@orb.com> (raw)
In-Reply-To: <CADo4Y9iKvoXhKg5pEAB+cbA7Rkfa=nF4TLu0xgcS3dnkNi_n4g@mail.gmail.com>
On 2012-01-19 09:20, Michael Nahas wrote:
> The problem I'm running into is that whenever I change a file in a
> directory, I have to bump up the version number in the configuration
> file. The larger version value in the config file causes my changes
> to be loaded over the old ones.
>
> Most of my commits are edits to a file like "foo.js" and an increment
> to the version number in "config". Ideally, each of my features
> should live in a single commit and I should be able to make a sequence
> of them, each time incrementing the version number in config.
>
> The problem I'm running into starts with me editing version=100. I
> create new commits where I set the version to 101, 102, 103, 104.
> When I go to push ("git svn dcommit"), my coworkers have incremented
> the version to 103. So, I rebase my changes, and get conflicts every
> time because of the version number!
>
> Is there a good way to avoid these conflicts? Is there a hook I can
> write? Is there a change to this process that would work smoother
> with Git and its distributed development? It's okay if the version
> number skips numbers (e.g., jumps from 100 to 104), as long as it
> increases.
Maybe you can do something with "git rerere"
(http://progit.org/2010/03/08/rerere.html). It supposed to automatically
resolve known conflicts.
I've never used myself, I just know it exists, so I don't know it's
usable in your case. But possibly you would pre-fill the rerere cache
(assuming that the format is simple enough) then just run rebase.
Jehan
next prev parent reply other threads:[~2012-01-19 21:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CADo4Y9jGYJasDL9m7_50aOTrOyoezdyg=vcsZhQ87Qk-1XfTUQ@mail.gmail.com>
2012-01-19 17:20 ` Rebase and incrementing version numbers Michael Nahas
2012-01-19 18:12 ` demerphq
2012-01-19 18:48 ` Michael Nahas
2012-01-19 19:58 ` PJ Weisberg
2012-01-19 20:06 ` Michael Nahas
2012-01-19 23:31 ` Santi Béjar
2012-01-25 2:18 ` John Szakmeister
2012-01-19 19:20 ` Carlos Martín Nieto
2012-01-19 20:02 ` Michael Nahas
2012-01-20 15:53 ` Carlos Martín Nieto
2012-01-25 10:32 ` Christian Couder
2012-01-25 10:53 ` Carlos Martín Nieto
2012-01-25 11:18 ` Christian Couder
2012-01-19 21:07 ` Jehan Bing [this message]
2012-01-19 21:33 ` Jon Seymour
2012-01-25 2:09 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F188611.20205@orb.com \
--to=jehan@orb.com \
--cc=git@vger.kernel.org \
--cc=mike.nahas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.