Skip to contentSkip to conversation

diff.c: diff.renamelimit => diff.renameLimit in message

PATCH In review Max Nanasy 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore

Max Nanasy

author
#0 lore raw

PATCH 1/1 diff.c: diff.renamelimit => diff.renameLimit in message

In the warning message printed when rename or unmodified copy detection was skipped due to too many files, change "diff.renamelimit" to "diff.renameLimit", in order to make it consistent with git documentation, which consistently uses "diff.renameLimit".

---
 diff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff.c +1 -1
index 156fec4..052974e 100644
@@ -4662,7 +4662,7 @@ int diff_result_code(struct diff_options *opt, int status)
 {
  int result = 0;
 
- diff_warn_rename_limit("diff.renamelimit",
+ diff_warn_rename_limit("diff.renameLimit",
        opt->needed_rename_limit,
        opt->degraded_cc_to_c);
  if (!DIFF_OPT_TST(opt, EXIT_WITH_STATUS) &&

--
1.8.1.3

#1 lore raw
Quoted 7 lines · Max Nanasy

In the warning message printed when rename or unmodified copy detection was skipped due to too many files, change "diff.renamelimit" to "diff.renameLimit", in order to make it consistent with git documentation, which consistently uses "diff.renameLimit".

---

I "git grep"ed around and it tells me that this is the only such place. Thanks.

The patch is severely whitespace damaged. If you plan to keep contributing to Git, I'd like to make sure that your mail toolchain is sane, so that we do not have to keep hand-adjusting patches submitted by you before applying.

Quoted 18 lines
 diff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff.c +1 -2
index 156fec4..052974e 100644
@@ -4662,7 +4662,7 @@ int diff_result_code(struct diff_options *opt, int status)
 {
  int result = 0;
 
- diff_warn_rename_limit("diff.renamelimit",
+ diff_warn_rename_limit("diff.renameLimit",
        opt->needed_rename_limit,
        opt->degraded_cc_to_c);
  if (!DIFF_OPT_TST(opt, EXIT_WITH_STATUS) &&
--

1.8.1.3

author
#2 lore raw

PATCH v2 1/1 diff.c: diff.renamelimit => diff.renameLimit in message

In the warning message printed when rename or unmodified copy detection was skipped due to too many files, change "diff.renamelimit" to "diff.renameLimit", in order to make it consistent with git documentation, which consistently uses "diff.renameLimit".

---

Quoted 6 lines · Junio C Hamano <gitster <at> pobox.com> writes:

The patch is severely whitespace damaged. If you plan to keep contributing to Git, I'd like to make sure that your mail toolchain is sane, so that we do not have to keep hand-adjusting patches submitted by you before applying.

I composed the first patch through the GMail web interface, which converted tabs to spaces. I'm retrying this one through git send-email.

 diff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff.c +1 -1
index 156fec4..052974e 100644
@@ -4662,7 +4662,7 @@ int diff_result_code(struct diff_options *opt, int status)
 {
 	int result = 0;
 
-	diff_warn_rename_limit("diff.renamelimit",
+	diff_warn_rename_limit("diff.renameLimit",
 			       opt->needed_rename_limit,
 			       opt->degraded_cc_to_c);
 	if (!DIFF_OPT_TST(opt, EXIT_WITH_STATUS) &&
Signature · 1 line
1.8.1.3