Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-11-05 17:08:03 +0300
committerJunio C Hamano <gitster@pobox.com>2021-11-05 22:01:12 +0300
commit48bcd823d43f9aab4d843a4b1004137a96677f1f (patch)
tree7c0ce1ba5a187c86d93e377eaec31ca094a2feec /generate-cmdlist.sh
parent0f05f22516ac8208452e1f2989dfd9adfbb70c3a (diff)
generate-cmdlist.sh: run "grep | sort", not "sort | grep"
This doesn't matter for performance, but let's not include the empty lines in our sorting. This makes the intent of the code clearer. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'generate-cmdlist.sh')
-rwxr-xr-xgenerate-cmdlist.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh
index 16043e3847..e517c33710 100755
--- a/generate-cmdlist.sh
+++ b/generate-cmdlist.sh
@@ -18,8 +18,8 @@ category_list () {
command_list "$1" |
cut -c 40- |
tr ' ' '\012' |
- LC_ALL=C sort -u |
- grep -v '^$'
+ grep -v '^$' |
+ LC_ALL=C sort -u
}
get_synopsis () {