Mercurial Queues Emulation for Git
リビジョン | 880e599024339bdd06e71903341b0a0b35d0fb02 (tree) |
---|---|
日時 | 2022-02-13 02:32:33 |
作者 | Keith Marshall <keith@user...> |
コミッター | Keith Marshall |
Install aliases for "git qdelete" and "git qrename".
* Makefile.in (install_alias): New functional macro; use it...
(install-bin-scripts): ...here, to create $bindir aliases for...
(git-qremove, git-qrm): ...each of these, both linked to...
(git-qdelete): ...this.
(git-qmv): Create a further $bindir alias, linking it to...
(git-qrename): ...this.
(install-man-pages): Likewise, create $man1dir aliases for...
(git-qremove.1, git-qrm.1): ...each of these, linked to...
(git-qdelete.1): ...this, and likewise...
(git-qmv.1): ...this, linked to...
(git-qremove.1): ...this.
* git-qdelete.1.man (git qremove, git qrm)
* git-qrename.1.man (git qmv): Document aliases.
@@ -8,7 +8,7 @@ PACKAGE_TARNAME := @PACKAGE_TARNAME@ | ||
8 | 8 | PACKAGE_VERSION := @PACKAGE_VERSION@ |
9 | 9 | # |
10 | 10 | # Written by Keith Marshall <keith@users.osdn.me> |
11 | -# Copyright (C) 2018, 2019, Keith Marshall | |
11 | +# Copyright (C) 2018, 2019, 2022, Keith Marshall | |
12 | 12 | # |
13 | 13 | # ------------------------------------------------------------------------------ |
14 | 14 | # |
@@ -164,6 +164,11 @@ DO_INSTALL = echo $(INSTALL) $1 $2; $(INSTALL) $1 $2 | ||
164 | 164 | |
165 | 165 | install-bin-scripts: $(addprefix git-,$(mq_supported)) |
166 | 166 | @$(call INSTALL_SCRIPTS,$^,-m 755,${bindir}) |
167 | + $(call install_alias,qmv,qrename,bindir) | |
168 | + $(call install_alias,qremove,qdelete,bindir) | |
169 | + $(call install_alias,qrm,qdelete,bindir) | |
170 | + | |
171 | +install_alias = ln -f $(addprefix ${$3}/git-,$2 $1) | |
167 | 172 | |
168 | 173 | vpath %.sh ${srcdir} |
169 | 174 | vpath %.awk ${srcdir} |
@@ -223,6 +228,9 @@ install-man: ${man1dir} install-man-pages | ||
223 | 228 | install-man-pages: $(wildcard ${srcdir}/man/*.man) |
224 | 229 | cd ${man1dir}; rm -f $(notdir $(^:.man=)) |
225 | 230 | $(QUIET_MAKE) $(addprefix ${man1dir}/,$(notdir $(^:.man=))) |
231 | + $(call install_alias,qmv.1,qrename.1,man1dir) | |
232 | + $(call install_alias,qremove.1,qdelete.1,man1dir) | |
233 | + $(call install_alias,qrm.1,qdelete.1,man1dir) | |
226 | 234 | |
227 | 235 | ${man1dir}/%: %.man |
228 | 236 | $(call manpage_installer_script,$<) > $@ |
@@ -5,7 +5,7 @@ | ||
5 | 5 | .\" $Id$ |
6 | 6 | .\" |
7 | 7 | .\" Written by Keith Marshall <keith@users.osdn.me> |
8 | -.\" Copyright (C) 2019, Keith Marshall | |
8 | +.\" Copyright (C) 2019, 2022, Keith Marshall | |
9 | 9 | .\" |
10 | 10 | .\" |
11 | 11 | .\" This man page file is part of the Git-MQ program suite. |
@@ -27,6 +27,10 @@ git\-qdelete \- remove patches from a Git\-MQ series | ||
27 | 27 | . |
28 | 28 | .SH SYNOPSIS |
29 | 29 | .BR git\ qdelete \ [ \-k \ |\ \-\-keep ]\ < \fIpatch >\ ... |
30 | +.br | |
31 | +.BR git\ qremove \ [ \-k \ |\ \-\-keep ]\ < \fIpatch >\ ... | |
32 | +.br | |
33 | +.BR git\ qrm \ [ \-k \ |\ \-\-keep ]\ < \fIpatch >\ ... | |
30 | 34 | . |
31 | 35 | . |
32 | 36 | .ad b |
@@ -43,6 +47,15 @@ the associated patch files are also deleted | ||
43 | 47 | from the Git-MQ patch directory. |
44 | 48 | . |
45 | 49 | .LP |
50 | +The | |
51 | +.B git\ qremove | |
52 | +and | |
53 | +.B git\ qrm | |
54 | +forms are simple aliases for | |
55 | +.BR git\ qdelete ; | |
56 | +all three behave identically. | |
57 | +. | |
58 | +.LP | |
46 | 59 | Patches which are to be removed must be individually specified, |
47 | 60 | by name. |
48 | 61 | If the |
@@ -92,7 +105,7 @@ counterpart. | ||
92 | 105 | . |
93 | 106 | . |
94 | 107 | .SH AUTHOR |
95 | -Copyright (C) 2019, by Keith Marshall | |
108 | +Copyright (C) 2019, 2022, by Keith Marshall | |
96 | 109 | . |
97 | 110 | .LP |
98 | 111 | This man page was written by |
@@ -5,7 +5,7 @@ | ||
5 | 5 | .\" $Id$ |
6 | 6 | .\" |
7 | 7 | .\" Written by Keith Marshall <keith@users.osdn.me> |
8 | -.\" Copyright (C) 2019, Keith Marshall | |
8 | +.\" Copyright (C) 2019, 2022, Keith Marshall | |
9 | 9 | .\" |
10 | 10 | .\" |
11 | 11 | .\" This man page file is part of the Git-MQ program suite. |
@@ -28,6 +28,9 @@ git\-qrename \- rename the current, or any specified patch | ||
28 | 28 | .SH SYNOPSIS |
29 | 29 | .BR git\ qrename \ \c |
30 | 30 | .RI [< old\-name >]\ < new\-name > |
31 | +.br | |
32 | +.BR git\ qmv \ \c | |
33 | +.RI [< old\-name >]\ < new\-name > | |
31 | 34 | . |
32 | 35 | . |
33 | 36 | .ad b |
@@ -50,6 +53,13 @@ Patches may be renamed, | ||
50 | 53 | irrespective of the state of any guards to which they may be subject. |
51 | 54 | . |
52 | 55 | .LP |
56 | +The | |
57 | +.B git\ qmv | |
58 | +form is a simple alias for | |
59 | +.BR git\ rename ; | |
60 | +both behave identically. | |
61 | +. | |
62 | +.LP | |
53 | 63 | When both |
54 | 64 | .RI < old\-name > |
55 | 65 | and |
@@ -90,7 +100,7 @@ counterpart. | ||
90 | 100 | . |
91 | 101 | . |
92 | 102 | .SH AUTHOR |
93 | -Copyright (C) 2019, by Keith Marshall | |
103 | +Copyright (C) 2019, 2022, by Keith Marshall | |
94 | 104 | . |
95 | 105 | .LP |
96 | 106 | This man page was written by |