Matthieu Moy imag.fr> writes:
> diff.renames::
> - Tells Git to detect renames. If set to any boolean value, it
> - will enable basic rename detection. If set to "copies" or
> - "copy", it will detect copies, as well.
> + Whether and how Git detects renames. If set to
On 23 February 2016 at 22:41, Felipe Gonçalves Assis
<felipeg.as...@gmail.com> wrote:
> Just a quick update incorporating Eric's latest comments.
>
> Still based on
> c443d39 (merge-recursive: find-renames resets threshold, 2016-02-21).
>
One thing I just noticed is
From: Felipe Gonçalves Assis <felipeg.as...@gmail.com>
--find-renames= and --rename-threshold= should be aliases.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
t/t3034-merge-recursive-rename-options.sh | 46 +++
1 file changed, 4
From: Felipe Gonçalves Assis <felipeg.as...@gmail.com>
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
t/t3034-merge-recursive-rename-options.sh | 28
1 file changed, 28 insertions(+)
diff --git a/t/t3034-merge-recursive-rename-opt
Just a quick update incorporating Eric's latest comments.
Still based on
c443d39 (merge-recursive: find-renames resets threshold, 2016-02-21).
Felipe Gonçalves Assis (3):
t3034: add rename threshold tests
t3034: test option to disable renames
t3034: test deprecated interface
...s.sh
From: Felipe Gonçalves Assis <felipeg.as...@gmail.com>
10ae752 (merge-recursive: option to specify rename threshold,
2010-09-27) introduced this feature but did not include any tests.
The tests use the new option --find-renames, which replaces the then
introduced and now deprecated
On 23 February 2016 at 21:50, Eric Sunshine <sunsh...@sunshineco.com> wrote:
> On Tue, Feb 23, 2016 at 6:48 PM, Felipe Gonçalves Assis
> <felipeg.as...@gmail.com> wrote:
>> 10ae752 (merge-recursive: option to specify rename threshold,
>> 2010-09-27) introduced this f
From: Felipe Gonçalves Assis <felipeg.as...@gmail.com>
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
t/t3034-merge-recursive-rename-options.sh | 28
1 file changed, 28 insertions(+)
diff --git a/t/t3034-merge-recursive-rename-opt
From: Felipe Gonçalves Assis <felipeg.as...@gmail.com>
--find-renames= and --rename-threshold= should be aliases.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
t/t3034-merge-recursive-rename-options.sh | 46 +++
1 file changed, 4
From: Felipe Gonçalves Assis <felipeg.as...@gmail.com>
10ae752 (merge-recursive: option to specify rename threshold,
2010-09-27) introduced this feature but did not include any tests.
The tests use the new option --find-renames, which replaces the then
introduced and now deprecated
Get rid of blatant bash-isms in favour of simple and portable constructions.
Felipe Gonçalves Assis (3):
t3034: add rename threshold tests
t3034: test option to disable renames
t3034: test deprecated interface
...s.sh => t3032-merge-recursive-space-options.sh} | 2 +-
t/t3034-me
--find-renames= and --rename-threshold= should be aliases.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
t/t3034-merge-recursive-rename-options.sh | 46 +++
1 file changed, 46 insertions(+)
diff --git a/t/t3034-merge-recursive-rename-opti
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
t/t3034-merge-recursive-rename-options.sh | 28
1 file changed, 28 insertions(+)
diff --git a/t/t3034-merge-recursive-rename-options.sh
b/t/t3034-merge-recursive-rename-options.sh
index 6
for consistency:
"merge-recursive options" -> "merge-recursive space options"
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
...s.sh => t3032-merge-recursive-space-options.sh} | 2 +-
t/t3034-merge-recursive-rename-options.sh | 23
Gonçalves Assis (3):
t3034: add rename threshold tests
t3034: test option to disable renames
t3034: test deprecated interface
...s.sh => t3032-merge-recursive-space-options.sh} | 2 +-
t/t3034-merge-recursive-rename-options.sh | 309 +
2 files changed, 310 inserti
On 22 February 2016 at 19:29, Junio C Hamano <gits...@pobox.com> wrote:
> Felipe Gonçalves Assis <felipeg.as...@gmail.com> writes:
>
>>> As I said, I am reluctant to take the 25%/50%/75% tests in their
>>> current form. Let me take the first one and a half
On 22 February 2016 at 18:00, Junio C Hamano <gits...@pobox.com> wrote:
> "Felipe Gonçalves Assis" <felipeg.as...@gmail.com> writes:
>
>> This is a reorganisation of the previous series, bundling the test for the
>> fix
>> along with the commit itsel
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Documentation/merge-strategies.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/merge-strategies.txt
b/Documentation/merge-strategies.txt
index ff359b6..2eb92b9 100644
--- a/Documen
for consistency:
"merge-recursive options" -> "merge-recursive space options"
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Now this already introduces the final names and descriptions for the tests.
The test for threshold truncation was kept fo
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
t/t3034-merge-recursive-rename-options.sh | 28
1 file changed, 28 insertions(+)
diff --git a/t/t3034-merge-recursive-rename-options.sh
b/t/t3034-merge-recursive-rename-options.sh
index 7
quot;, the specific test for the feature was
bundled along.
To Junio: Please pay special attention to the test of threshold truncation.
Given that it seems to be an undocumented feature, I am not sure whether it
should be included or not.
Felipe Gonçalves Assis (5):
merge-strategies.txt: fix typo
t
--find-renames= and --rename-threshold= should be aliases.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Now includes tests with invalid arguments to --rename-threshold=
t/t3034-merge-recursive-rename-options.sh | 42 +++
1 file chang
Make the find-renames option follow the behaviour in git-diff, where it
resets the threshold when none is given. So, for instance,
"--find-renames=25 --find-renames" should result in the default
threshold (50%) instead of 25%.
Add corresponding test.
Signed-off-by: Felipe Gonça
On 21 February 2016 at 15:40, Eric Sunshine <sunsh...@sunshineco.com> wrote:
> On Sun, Feb 21, 2016 at 10:09 AM, Felipe Gonçalves Assis
> <felipeg.as...@gmail.com> wrote:
>> merge-recursive: test more consistent interface
>
> The real meat of this patch (it seem
On 21 February 2016 at 14:52, Eric Sunshine <sunsh...@sunshineco.com> wrote:
> On Sun, Feb 21, 2016 at 10:09 AM, Felipe Gonçalves Assis
> <felipeg.as...@gmail.com> wrote:
>> merge-recursive: test rename threshold option
>
>> + git read-tree --reset -u HEAD
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Documentation/merge-strategies.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/merge-strategies.txt
b/Documentation/merge-strategies.txt
index ff359b6..2eb92b9 100644
--- a/Documen
Make the find-renames option follow the behaviour in git-diff, where it
resets the threshold when none is given. So, for instance,
"--find-renames=25 --find-renames" should result in the default
threshold (50%) instead of 25%.
Signed-off-by: Felipe Gonçalves Assis <felipegas
Update basic tests to use the new option find-renames instead of
rename-threshold. Add tests to verify that rename-threshold= behaves
as a synonym for find-renames=. Test that find-renames resets
threshold.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
t/t3034
Also update name and description of tests for consistency:
"merge-recursive options" -> "merge-recursive space options"
"merge-recursive rename threshold" -> "merge-recursive rename options"
Signed-off-by: Felipe Gonçalves Assis <feli
Commit 10ae7526bebb505ba01f76ec97d5f7b5e0e5 introduced this feature,
but did not include any tests. This commit fixes this.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
t/t3034-merge-recursive-rename-threshold.sh | 146
1 file change
commits contain fixes.
The tests were divided in the latter three, reproducing the chronological
history of the features:
3. --rename-threshold only
4. --rename-threshold and --no-renames
5. --find-renames, --no-renames and deprecated --rename-threshold
Felipe Gonçalves Assis (5):
merge
On 21 February 2016 at 04:40, Junio C Hamano wrote:
> Yikes, your previous round is already in 'next', so could you make
> this series an incremental on top of what is already queued up to
> 1b47ad16 (merge-recursive: more consistent interface, 2016-02-17)?
>
> Thanks.
>
Oh,
Commit 10ae7526bebb505ba01f76ec97d5f7b5e0e5 introduced this feature,
but did not include any tests. This commit fixes this.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
This commit is independent of the proposed feature, so it might be of interest
even if th
The recursive strategy turns on rename detection by default. Add a
strategy option to disable rename detection even for exact renames.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Added tests.
For consistent naming, I renamed and slightly edited the test of whit
Add strategy option find-renames, following git-diff interface. This
makes the option rename-threshold redundant.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Added tests and made --find-renames reset the similarity index to the default.
Documentation/merge-strategi
.
For the last part, I made --find-renames (without =) reset the similarity
index to the default, just as in git-diff.
Felipe Gonçalves Assis (3):
merge-recursive: test rename threshold option
merge-recursive: option to disable renames
merge-recursive: more consistent interface
Documentation/merge
On 16 February 2016 at 23:37, Eric Sunshine <sunsh...@sunshineco.com> wrote:
> On Tue, Feb 16, 2016 at 8:11 PM, Felipe Gonçalves Assis
> <felipeg.as...@gmail.com> wrote:
>> No more renames option. rename-threshold enables renames.
>
> Can you add some tests? Off
Incorporate documentation input from Eric Sunshine. Fix missing signoff.
The first part is unchanged.
No tests are included for now. This work is being done in parallel and should
be properly included in future proposals.
Felipe Gonçalves Assis (2):
merge-recursive: option to disable renames
The recursive strategy turns on rename detection by default. Add a
strategy option to disable rename detection even for exact renames.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Documentation/merge-strategies.txt | 6 ++
merge-recursive.c
Add strategy option find-renames, following git-diff interface. This
makes the option rename-threshold redundant.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Documentation/merge-strategies.txt | 10 ++
merge-recursive.c | 5 -
2 files c
On 16 February 2016 at 23:41, Eric Sunshine <sunsh...@sunshineco.com> wrote:
> On Tue, Feb 16, 2016 at 8:11 PM, Felipe Gonçalves Assis
> <felipeg.as...@gmail.com> wrote:
>> The recursive strategy turns on rename detection by default. Add a
>> strategy option to
The recursive strategy turns on rename detection by default. Add a
strategy option to disable rename detection even for exact renames.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Documentation/merge-strategies.txt | 6 ++
merge-recursive.c
No more renames option. rename-threshold enables renames.
detect_rename is now a simple boolean. Its value is no longer linked to
DIFF_ANYTHING symbol.
A second optional patch is included, teaching merge-recursive to take
"find-renames[=]" as well, for consistency.
Felipe Gonçalve
Add strategy option find-renames, following git-diff interface. This
makes the option rename-threshold redundant.
---
A minor note
git diff --check complains about an indent with spaces here, but I think I did
the right thing: indented with tabs and aligned with spaces. If desired, I can
align
The recursive strategy turns on rename detection by default. Add a
strategy option to disable rename detection even for exact renames.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Following Hamano's review, this patch includes a strategy option "renames"
On 16 February 2016 at 19:49, Junio C Hamano <gits...@pobox.com> wrote:
> "Felipe Gonçalves Assis" <felipeg.as...@gmail.com> writes:
>
>> +no-renames;;
>> + Turn off rename detection.
>> + See also linkgit:git-diff[1] `--no-renames`.
On 15 February 2016 at 09:03, Junio C Hamano <gits...@pobox.com> wrote:
> Felipe Gonçalves Assis <felipeg.as...@gmail.com> writes:
>
>> However, if you do find this approach acceptable/desirable
>> (rename-threshold > 100%), I can work on the issues pointed
The recursive strategy turns on rename detection by default. Add a
strategy option to disable rename detection even for exact renames.
Signed-off-by: Felipe Gonçalves Assis <felipegas...@gmail.com>
---
Hi, this is a patch relative to the "Custom merge driver with no rename
detect
On 15 February 2016 at 06:06, Johannes Schindelin
<johannes.schinde...@gmx.de> wrote:
> Hi Felipe,
>
> On Sun, 14 Feb 2016, Felipe Gonçalves Assis wrote:
>
>> Attached is a quick and dirty patch that emulates the effect by
>> allowing greater than 100% rename
river-with-no-rename-detection
Thanks in advance for any attention provided.
Regards,
Felipe Gonçalves Assis
From bcef6c44fac3a29afe03408ef27024776da861ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felipe=20Gon=C3=A7alves=20Assis?= <felipegas...@gmail.com>
Date: Sun, 14 Feb 2016 17:02:00
50 matches
Mail list logo