Skip to contentSkip to conversation

request-pull: drop old USAGE stuff

PATCH In review Wolfram Sang 3 participants 3 messages Jan 15, 2017 – Jan 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 request-pull: drop old USAGE stuff

request-pull uses OPTIONS_SPEC, so no need for (meanwhile incomplete) USAGE and LONG_USAGE anymore.

---

 git-request-pull.sh |    3 ---
 1 file changed, 3 deletions(-)
git-request-pull.sh +0 -3
Index: git-2.11.0/git-request-pull.sh
===================================================================
@@ -4,9 +4,6 @@
 # This file is licensed under the GPL v2, or a later version
 # at the discretion of Linus Torvalds.
 
-USAGE='<start> <url> [<end>]'
-LONG_USAGE='Summarizes the changes between two commits to the standard output,
-and includes the given URL in the generated summary.'
 SUBDIRECTORY_OK='Yes'
 OPTIONS_KEEPDASHDASH=
 OPTIONS_STUCKLONG=
#1 lore raw
Quoted 5 lines · Wolfram Sang

request-pull uses OPTIONS_SPEC, so no need for (meanwhile incomplete) USAGE and LONG_USAGE anymore.

---

Makes sense. These are not used anywhere after we switched to use parse-options.

Thanks.

Quoted 18 lines
 git-request-pull.sh |    3 ---
 1 file changed, 3 deletions(-)

Index: git-2.11.0/git-request-pull.sh
===================================================================

git-request-pull.sh +0 -3
@@ -4,9 +4,6 @@
 # This file is licensed under the GPL v2, or a later version
 # at the discretion of Linus Torvalds.
 
-USAGE='<start> <url> [<end>]'
-LONG_USAGE='Summarizes the changes between two commits to the standard output,
-and includes the given URL in the generated summary.'
 SUBDIRECTORY_OK='Yes'
 OPTIONS_KEEPDASHDASH=
 OPTIONS_STUCKLONG=
#2 lore raw
Quoted 10 lines · Junio C Hamano
Quoted 5 lines · Wolfram Sang

request-pull uses OPTIONS_SPEC, so no need for (meanwhile incomplete) USAGE and LONG_USAGE anymore.

---

Makes sense. These are not used anywhere after we switched to use parse-options.

It does seem a shame that parse-options does not show this explanatory text. But I guess nobody really cares that much, and you can always use "--help" to get even more details.

-Peff