Re: [PATCH v2 1/4] git-p4: Allow setting rename/copy detection threshold.
- From
Vitor Antunes <vitor.hda@gmail.com>
- Date
- Aug 19, 2011, 13:51 UTC
- Message-ID
- <CAOpHH-WJWxeTSO5Dy6UR9pJh3w9hQSBuE7O1mY2KDAEsS9OAPw@mail.gmail.com>
- In-Reply-To
- <20110819114719.GB15639@padd.com>
On Fri, Aug 19, 2011 at 12:47 PM, Pete Wyckoff <pw@padd.com> wrote:
> I think you have to decide that 1 means 1 in this case. > Everything else can mean true. That may suggest that using > --bool or --bool-or-int isn't possible in this case.
But doing that kind of post-processing would require me to call git-config (at least) twice: first to check if it is a number with a possible "." in the middle or "%" at the end and a second time with the --bool option. I have no problem in doing this, but I think it increases the complexity without bringing major advantages.
I will use --bool for detectCopiesHarder and will send you the new set of patches tonight, unless we decide to also start using it for detectCopies and detectRenames.
-- Vitor Antunes