On Fri, Oct 31, 2008 at 11:25:43AM +0100, Guido Günther wrote:
> On Fri, Oct 31, 2008 at 12:59:34PM +0300, Jari Aalto wrote:
> > Guido Günther <[EMAIL PROTECTED]> writes:
> > 
> > >> FEATURE REQUEST
> > >> 
> > >> Could there be a new option --force-empty-commit that would:
> > >> 
> > >> * Commit with message-only: "Imported .... (no changes)"
> > >> * mark the commit as usual "upstream/version"
> > >
> > > I don't think we can create a new commit object without any changes. Is
> > > this possible in git?
> > 
> > This "git commit" option does it:
> > 
> >      --allow-empty
> Yes. This works indeed (this options wasn't in older git versions) - it
> cretes an empty (except for the commit message) commit object.
Thinking about this, I'll do the following: 
 * leave the default behaviour as is - failing if one wants to import
   the same upstream tarball twise is the correct default I think
 * add an --allow-empty that will simply be passed on to git-commit
This way everything should work as you expected.
 -- Guido



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to