* [PATCH] Add --indent-heuristic to bash completion.
@ 2017-04-25 11:37 Martin Liška
2017-04-26 19:38 ` Stefan Beller
2017-04-27 20:48 ` SZEDER Gábor
0 siblings, 2 replies; 5+ messages in thread
From: Martin Liška @ 2017-04-25 11:37 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 81 bytes --]
Hello.
The patch adds BASH completion for a newly added option.
Thanks,
Martin
[-- Attachment #2: 0001-Add-indent-heuristic-to-bash-completion.patch --]
[-- Type: text/x-patch, Size: 1528 bytes --]
From 316355276a9772cdfdd24a81f19400f176944df2 Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Tue, 25 Apr 2017 13:35:17 +0200
Subject: [PATCH] Add --indent-heuristic to bash completion.
Signed-off-by: Martin Liska <mliska@suse.cz>
---
contrib/completion/git-completion.bash | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 1150164d5..8fb25594c 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1395,7 +1395,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
--quiet --ext-diff --no-ext-diff
--no-prefix --src-prefix= --dst-prefix=
--inter-hunk-context=
- --patience --histogram --minimal
+ --patience --histogram --indent-heuristic --minimal
--raw --word-diff --word-diff-regex=
--dirstat --dirstat= --dirstat-by-file
--dirstat-by-file= --cumulative
@@ -1482,6 +1482,7 @@ __git_format_patch_options="
--not --all --cover-letter --no-prefix --src-prefix= --dst-prefix=
--inline --suffix= --ignore-if-in-upstream --subject-prefix=
--output-directory --reroll-count --to= --quiet --notes
+ --indent-heuristic
"
_git_format_patch ()
@@ -1681,6 +1682,7 @@ __git_log_common_options="
--min-age= --until= --before=
--min-parents= --max-parents=
--no-min-parents --no-max-parents
+ --indent-heuristic
"
# Options that go well for log and gitk (not shortlog)
__git_log_gitk_options="
--
2.12.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Add --indent-heuristic to bash completion.
2017-04-25 11:37 [PATCH] Add --indent-heuristic to bash completion Martin Liška
@ 2017-04-26 19:38 ` Stefan Beller
2017-04-27 9:09 ` Martin Liška
2017-04-27 20:48 ` SZEDER Gábor
1 sibling, 1 reply; 5+ messages in thread
From: Stefan Beller @ 2017-04-26 19:38 UTC (permalink / raw)
To: Martin Liška; +Cc: git
On Tue, Apr 25, 2017 at 4:37 AM, Martin Liška <mliska@suse.cz> wrote:
> Hello.
>
> The patch adds BASH completion for a newly added option.
>
The looks good, though the format is unusual. (We prefer the
format to be inline instead of an attachment)
Thanks,
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add --indent-heuristic to bash completion.
2017-04-26 19:38 ` Stefan Beller
@ 2017-04-27 9:09 ` Martin Liška
2017-04-27 16:37 ` Stefan Beller
0 siblings, 1 reply; 5+ messages in thread
From: Martin Liška @ 2017-04-27 9:09 UTC (permalink / raw)
To: Stefan Beller; +Cc: git
On 04/26/2017 09:38 PM, Stefan Beller wrote:
> On Tue, Apr 25, 2017 at 4:37 AM, Martin Liška <mliska@suse.cz> wrote:
>> Hello.
>>
>> The patch adds BASH completion for a newly added option.
>>
>
> The looks good, though the format is unusual. (We prefer the
> format to be inline instead of an attachment)
Good, adding inline version.
I've read Documentation/SubmittingPatches, can you please help me which
maintainer should I CC?
Martin
---
contrib/completion/git-completion.bash | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 1150164d5..8fb25594c 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1395,7 +1395,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
--quiet --ext-diff --no-ext-diff
--no-prefix --src-prefix= --dst-prefix=
--inter-hunk-context=
- --patience --histogram --minimal
+ --patience --histogram --indent-heuristic --minimal
--raw --word-diff --word-diff-regex=
--dirstat --dirstat= --dirstat-by-file
--dirstat-by-file= --cumulative
@@ -1482,6 +1482,7 @@ __git_format_patch_options="
--not --all --cover-letter --no-prefix --src-prefix= --dst-prefix=
--inline --suffix= --ignore-if-in-upstream --subject-prefix=
--output-directory --reroll-count --to= --quiet --notes
+ --indent-heuristic
"
_git_format_patch ()
@@ -1681,6 +1682,7 @@ __git_log_common_options="
--min-age= --until= --before=
--min-parents= --max-parents=
--no-min-parents --no-max-parents
+ --indent-heuristic
"
# Options that go well for log and gitk (not shortlog)
__git_log_gitk_options="
--
2.12.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Add --indent-heuristic to bash completion.
2017-04-27 9:09 ` Martin Liška
@ 2017-04-27 16:37 ` Stefan Beller
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Beller @ 2017-04-27 16:37 UTC (permalink / raw)
To: Martin Liška, Junio C Hamano; +Cc: git
On Thu, Apr 27, 2017 at 2:09 AM, Martin Liška <mliska@suse.cz> wrote:
> On 04/26/2017 09:38 PM, Stefan Beller wrote:
>> On Tue, Apr 25, 2017 at 4:37 AM, Martin Liška <mliska@suse.cz> wrote:
>>> Hello.
>>>
>>> The patch adds BASH completion for a newly added option.
>>>
>>
>> The looks good, though the format is unusual. (We prefer the
>> format to be inline instead of an attachment)
>
> Good, adding inline version.
> I've read Documentation/SubmittingPatches, can you please help me which
> maintainer should I CC?
cc'd Junio (the only maintainer in Git, are you a kernel developer, where
you have hundreds of maintainers?)
Thanks,
Stefan
>
> Martin
> ---
> contrib/completion/git-completion.bash | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 1150164d5..8fb25594c 100644
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -1395,7 +1395,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
> --quiet --ext-diff --no-ext-diff
> --no-prefix --src-prefix= --dst-prefix=
> --inter-hunk-context=
> - --patience --histogram --minimal
> + --patience --histogram --indent-heuristic --minimal
> --raw --word-diff --word-diff-regex=
> --dirstat --dirstat= --dirstat-by-file
> --dirstat-by-file= --cumulative
> @@ -1482,6 +1482,7 @@ __git_format_patch_options="
> --not --all --cover-letter --no-prefix --src-prefix= --dst-prefix=
> --inline --suffix= --ignore-if-in-upstream --subject-prefix=
> --output-directory --reroll-count --to= --quiet --notes
> + --indent-heuristic
> "
>
> _git_format_patch ()
> @@ -1681,6 +1682,7 @@ __git_log_common_options="
> --min-age= --until= --before=
> --min-parents= --max-parents=
> --no-min-parents --no-max-parents
> + --indent-heuristic
> "
> # Options that go well for log and gitk (not shortlog)
> __git_log_gitk_options="
> --
> 2.12.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add --indent-heuristic to bash completion.
2017-04-25 11:37 [PATCH] Add --indent-heuristic to bash completion Martin Liška
2017-04-26 19:38 ` Stefan Beller
@ 2017-04-27 20:48 ` SZEDER Gábor
1 sibling, 0 replies; 5+ messages in thread
From: SZEDER Gábor @ 2017-04-27 20:48 UTC (permalink / raw)
To: Martin Liška; +Cc: SZEDER Gábor, git
> The patch adds BASH completion for a newly added option.
There is a '--no-indent-heuristic' option, too, and a
'diff.indentHeuristic' config variable as well.
I'm not sure it's worth it, though. As far as I remember the future
plans for indent heuristics, this option and config variable are only
temporary, and this heuristic will become the default after a few
releases of testing anyway (assuming that nothing prohibitive pops up
in the meantime).
> --------------5BA49415AE751679784E55AA
> Content-Type: text/x-patch;
> name="0001-Add-indent-heuristic-to-bash-completion.patch"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: attachment;
> filename="0001-Add-indent-heuristic-to-bash-completion.patch"
>
> >From 316355276a9772cdfdd24a81f19400f176944df2 Mon Sep 17 00:00:00 2001
> From: marxin <mliska@suse.cz>
> Date: Tue, 25 Apr 2017 13:35:17 +0200
> Subject: [PATCH] Add --indent-heuristic to bash completion.
>
> Signed-off-by: Martin Liska <mliska@suse.cz>
> ---
> contrib/completion/git-completion.bash | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 1150164d5..8fb25594c 100644
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -1395,7 +1395,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
> --quiet --ext-diff --no-ext-diff
> --no-prefix --src-prefix= --dst-prefix=
> --inter-hunk-context=
> - --patience --histogram --minimal
> + --patience --histogram --indent-heuristic --minimal
> --raw --word-diff --word-diff-regex=
> --dirstat --dirstat= --dirstat-by-file
> --dirstat-by-file= --cumulative
> @@ -1482,6 +1482,7 @@ __git_format_patch_options="
> --not --all --cover-letter --no-prefix --src-prefix= --dst-prefix=
> --inline --suffix= --ignore-if-in-upstream --subject-prefix=
> --output-directory --reroll-count --to= --quiet --notes
> + --indent-heuristic
> "
>
> _git_format_patch ()
> @@ -1681,6 +1682,7 @@ __git_log_common_options="
> --min-age= --until= --before=
> --min-parents= --max-parents=
> --no-min-parents --no-max-parents
> + --indent-heuristic
> "
> # Options that go well for log and gitk (not shortlog)
> __git_log_gitk_options="
> --
> 2.12.2
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-04-27 20:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-25 11:37 [PATCH] Add --indent-heuristic to bash completion Martin Liška
2017-04-26 19:38 ` Stefan Beller
2017-04-27 9:09 ` Martin Liška
2017-04-27 16:37 ` Stefan Beller
2017-04-27 20:48 ` SZEDER Gábor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.