Re: [PATCH 7/7] push: document --lockref
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Jul 14, 2013, 20:59 UTC
- Message-ID
- <51E31131.3070005@kdbg.org>
- In-Reply-To
- <20130714203403.GE8564@google.com>
Am 14.07.2013 22:34, schrieb Jonathan Nieder:
Show 8 quoted lines
> Johannes Sixt wrote: > >> Sorry, IMO, this goes into a totally wrong direction, in particular, I >> think that this is going to close to door to make --lockref the default >> some day in a way that helps everyone. > > Would a '*' that acts like --lockref on a per ref basis address your > concerns?
No, because I think that new syntax is not necessary.
But admittedly, I haven't spent any time to think about push.default modes other than 'matching'. In particular, I wonder how Junio's last example with push.default=simple can work today:
$ git pull --rebase # not a merge $ git push
because it is not a fast-forward. I am assuming that a +refspec must be in the game somehow. Why would we then need that --lockref implies allow-no-ff when we already have +refspec that already means allow-no-ff?
But as I said, I'm not familiar with push.default other than matching and my assumption may be wrong.
-- Hannes