• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Mercurial Queues Emulation for Git


Commit MetaInfo

修訂078d06b101c4ac829af8ac3d8c2187b88f03b0d3 (tree)
時間2020-01-07 07:20:58
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Avoid duplicate option definitions in git-rev-parse.

* git-mq-setup.shar.in (OPTIONS_SPEC)
[OPTION_VERBOSE_DEFINED] (--verbose): Do not add duplicate definition.
(--color): Associate short name alias with only one abbreviation.

* git-qapplied.shar git-qseries.shar
* git-qtop.shar (OPTION_VERBOSE_DEFINED): Assert it.

Change Summary

差異

--- a/git-mq-setup.shar.in
+++ b/git-mq-setup.shar.in
@@ -14,7 +14,7 @@ cat <<\ETX
1414 # $Id$
1515 #
1616 # Written by Keith Marshall <keith@users.osdn.me>
17-# Copyright (C) 2018, 2019, Keith Marshall
17+# Copyright (C) 2018-2020, Keith Marshall
1818 #
1919 #
2020 # This file is part of the Git-MQ program suite.
@@ -39,8 +39,9 @@ cat <<\ETX
3939 # colour control options; ensure that they are declared:
4040 #
4141 OPTIONS_SPEC="$OPTIONS_SPEC
42-v,verbose!* generic verbosity selector -- may have no effect
4342 colour?* generic output colour control -- may have no effect"
43+${OPTION_VERBOSE_DEFINED-false} || OPTIONS_SPEC="$OPTIONS_SPEC
44+v,verbose!* generic verbosity selector -- may have no effect"
4445
4546 # For Git-MQ options, such as "--colour", we prefer a spelling convention
4647 # which conforms to "World English" standards; however, git itself adopts
@@ -49,10 +50,10 @@ colour?* generic output colour control -- may have no effect"
4950 # ambiguous, we must also explicitly declare those abbreviations:
5051 #
5152 OPTIONS_SPEC="$OPTIONS_SPEC
52-],color?* hidden alias for --colour
53-],colo?* hidden alias for --colour
54-],col?* hidden alias for --colour
55-],co?* hidden alias for --colour
53+color?* hidden alias for --colour
54+colo?* hidden alias for --colour
55+col?* hidden alias for --colour
56+co?* hidden alias for --colour
5657 ],c?* hidden alias for --colour"
5758
5859 SUBDIRECTORY_OK=true . "`git --exec-path`/git-sh-setup" && require_work_tree
--- a/git-qapplied.shar
+++ b/git-qapplied.shar
@@ -9,7 +9,7 @@
99 # $Id$
1010 #
1111 # Written by Keith Marshall <keith@users.osdn.me>
12-# Copyright (C) 2018, 2019, Keith Marshall
12+# Copyright (C) 2018-2020, Keith Marshall
1313 #
1414 #
1515 # This file is part of the Git-MQ program suite.
@@ -52,7 +52,7 @@ cat <<ETX
5252 # git-sh-setup script requires the much less appropriate name "OPTIONS_SPEC",
5353 # (which describes only a small subset of its actual content).
5454 #
55-OPTIONS_SPEC="\\
55+OPTION_VERBOSE_DEFINED=true OPTIONS_SPEC="\\
5656 git $1 [-v | --verbose] [-s | --summary] [-1 | --`
5757 case $1 in qapplied) echo last ;; qunapplied) echo first ;; esac`]
5858
--- a/git-qseries.shar
+++ b/git-qseries.shar
@@ -6,7 +6,7 @@
66 # $Id$
77 #
88 # Written by Keith Marshall <keith@users.osdn.me>
9-# Copyright (C) 2018, 2019, Keith Marshall
9+# Copyright (C) 2018-2020, Keith Marshall
1010 #
1111 #
1212 # This file is part of the Git-MQ program suite.
@@ -46,7 +46,7 @@ cat <<\ETX
4646 # git-sh-setup script requires the much less appropriate name "OPTIONS_SPEC",
4747 # (which describes only a small subset of its actual content).
4848 #
49-OPTIONS_SPEC="\
49+OPTION_VERBOSE_DEFINED=true OPTIONS_SPEC="\
5050 git qseries [-v | --verbose] [-s | --summary] [-m | --missing]
5151
5252 List entries from the patch queue series file.
--- a/git-qtop.shar
+++ b/git-qtop.shar
@@ -9,7 +9,7 @@
99 # $Id$
1010 #
1111 # Written by Keith Marshall <keith@users.osdn.me>
12-# Copyright (C) 2018, 2019, Keith Marshall
12+# Copyright (C) 2018-2020, Keith Marshall
1313 #
1414 #
1515 # This file is part of the Git-MQ program suite.
@@ -52,7 +52,7 @@ cat <<ETX
5252 # git-sh-setup script requires the much less appropriate name "OPTIONS_SPEC",
5353 # (which describes only a small subset of its actual content).
5454 #
55-OPTIONS_SPEC="\\
55+OPTION_VERBOSE_DEFINED=true OPTIONS_SPEC="\\
5656 git $1 [-v | --verbose] [-s | --summary]
5757
5858 `case $1 in