Skip to content

Commit 1a8b769

Browse files
author
Junio C Hamano
committed
Merge branches 'lh/submodules' and 'pb/am'
* lh/submodules: Add basic test-script for git-submodule Add git-submodule command * pb/am: Remove git-applypatch git-applymbox: Remove command
3 parents 4bc7083 + 88961ef + 59c8e2c commit 1a8b769

14 files changed

+416
-504
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ git-add--interactive
77
git-am
88
git-annotate
99
git-apply
10-
git-applymbox
11-
git-applypatch
1210
git-archimport
1311
git-archive
1412
git-bisect
@@ -126,6 +124,7 @@ git-ssh-push
126124
git-ssh-upload
127125
git-status
128126
git-stripspace
127+
git-submodule
129128
git-svn
130129
git-svnimport
131130
git-symbolic-ref

Documentation/SubmittingPatches

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,15 @@ One test you could do yourself if your MUA is set up correctly is:
239239
$ git fetch http://kernel.org/pub/scm/git/git.git master:test-apply
240240
$ git checkout test-apply
241241
$ git reset --hard
242-
$ git applymbox a.patch
242+
$ git am a.patch
243243

244244
If it does not apply correctly, there can be various reasons.
245245

246246
* Your patch itself does not apply cleanly. That is _bad_ but
247247
does not have much to do with your MUA. Please rebase the
248248
patch appropriately.
249249

250-
* Your MUA corrupted your patch; applymbox would complain that
250+
* Your MUA corrupted your patch; "am" would complain that
251251
the patch does not apply. Look at .dotest/ subdirectory and
252252
see what 'patch' file contains and check for the common
253253
corruption patterns mentioned above.

Documentation/cmd-list.perl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ sub format_one {
7272
git-add mainporcelain
7373
git-am mainporcelain
7474
git-annotate ancillaryinterrogators
75-
git-applymbox ancillaryinterrogators
76-
git-applypatch purehelpers
7775
git-apply plumbingmanipulators
7876
git-archimport foreignscminterface
7977
git-archive mainporcelain
@@ -180,6 +178,7 @@ sub format_one {
180178
git-ssh-upload synchingrepositories
181179
git-status mainporcelain
182180
git-stripspace purehelpers
181+
git-submodule mainporcelain
183182
git-svn foreignscminterface
184183
git-svnimport foreignscminterface
185184
git-symbolic-ref plumbingmanipulators

Documentation/git-am.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ is terminated before the first occurrence of such a line.
127127

128128
When initially invoking it, you give it names of the mailboxes
129129
to crunch. Upon seeing the first patch that does not apply, it
130-
aborts in the middle, just like 'git-applymbox' does. You can
131-
recover from this in one of two ways:
130+
aborts in the middle,. You can recover from this in one of two ways:
132131

133132
. skip the current patch by re-running the command with '--skip'
134133
option.
@@ -145,7 +144,7 @@ names.
145144

146145
SEE ALSO
147146
--------
148-
gitlink:git-applymbox[1], gitlink:git-applypatch[1], gitlink:git-apply[1].
147+
gitlink:git-apply[1].
149148

150149

151150
Author

Documentation/git-applymbox.txt

Lines changed: 0 additions & 98 deletions
This file was deleted.

Documentation/git-applypatch.txt

Lines changed: 0 additions & 53 deletions
This file was deleted.

Documentation/git-mailinfo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ DESCRIPTION
1616
Reading a single e-mail message from the standard input, and
1717
writes the commit log message in <msg> file, and the patches in
1818
<patch> file. The author name, e-mail and e-mail subject are
19-
written out to the standard output to be used by git-applypatch
19+
written out to the standard output to be used by git-am
2020
to create a commit. It is usually not necessary to use this
2121
command directly. See gitlink:git-am[1] instead.
2222

Documentation/git-submodule.txt

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
git-submodule(1)
2+
================
3+
4+
NAME
5+
----
6+
git-submodule - Initialize, update or inspect submodules
7+
8+
9+
SYNOPSIS
10+
--------
11+
'git-submodule' [--quiet] [--cached] [status|init|update] [--] [<path>...]
12+
13+
14+
COMMANDS
15+
--------
16+
status::
17+
Show the status of the submodules. This will print the SHA-1 of the
18+
currently checked out commit for each submodule, along with the
19+
submodule path and the output of gitlink:git-describe[1] for the
20+
SHA-1. Each SHA-1 will be prefixed with `-` if the submodule is not
21+
initialized and `+` if the currently checked out submodule commit
22+
does not match the SHA-1 found in the index of the containing
23+
repository. This command is the default command for git-submodule.
24+
25+
init::
26+
Initialize the submodules, i.e. clone the git repositories specified
27+
in the .gitmodules file and checkout the submodule commits specified
28+
in the index of the containing repository. This will make the
29+
submodules HEAD be detached.
30+
31+
update::
32+
Update the initialized submodules, i.e. checkout the submodule commits
33+
specified in the index of the containing repository. This will make
34+
the submodules HEAD be detached.
35+
36+
37+
OPTIONS
38+
-------
39+
-q, --quiet::
40+
Only print error messages.
41+
42+
--cached::
43+
Display the SHA-1 stored in the index, not the SHA-1 of the currently
44+
checked out submodule commit. This option is only valid for the
45+
status command.
46+
47+
<path>::
48+
Path to submodule(s). When specified this will restrict the command
49+
to only operate on the submodules found at the specified paths.
50+
51+
FILES
52+
-----
53+
When cloning submodules, a .gitmodules file in the top-level directory
54+
of the containing repository is used to find the url of each submodule.
55+
This file should be formatted in the same way as $GIR_DIR/config. The key
56+
to each submodule url is "module.$path.url".
57+
58+
59+
AUTHOR
60+
------
61+
Written by Lars Hjemli <[email protected]>
62+
63+
GIT
64+
---
65+
Part of the gitlink:git[7] suite

Documentation/hooks.txt

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ This document describes the currently defined hooks.
1212
applypatch-msg
1313
--------------
1414

15-
This hook is invoked by `git-applypatch` script, which is
16-
typically invoked by `git-applymbox`. It takes a single
15+
This hook is invoked by `git-am` script. It takes a single
1716
parameter, the name of the file that holds the proposed commit
1817
log message. Exiting with non-zero status causes
19-
`git-applypatch` to abort before applying the patch.
18+
`git-am` to abort before applying the patch.
2019

2120
The hook is allowed to edit the message file in place, and can
2221
be used to normalize the message into some project standard
@@ -29,8 +28,7 @@ The default 'applypatch-msg' hook, when enabled, runs the
2928
pre-applypatch
3029
--------------
3130

32-
This hook is invoked by `git-applypatch` script, which is
33-
typically invoked by `git-applymbox`. It takes no parameter,
31+
This hook is invoked by `git-am`. It takes no parameter,
3432
and is invoked after the patch is applied, but before a commit
3533
is made. Exiting with non-zero status causes the working tree
3634
after application of the patch not committed.
@@ -44,12 +42,11 @@ The default 'pre-applypatch' hook, when enabled, runs the
4442
post-applypatch
4543
---------------
4644

47-
This hook is invoked by `git-applypatch` script, which is
48-
typically invoked by `git-applymbox`. It takes no parameter,
45+
This hook is invoked by `git-am`. It takes no parameter,
4946
and is invoked after the patch is applied and a commit is made.
5047

5148
This hook is meant primarily for notification, and cannot affect
52-
the outcome of `git-applypatch`.
49+
the outcome of `git-am`.
5350

5451
pre-commit
5552
----------

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ SCRIPT_SH = \
206206
git-repack.sh git-request-pull.sh git-reset.sh \
207207
git-sh-setup.sh \
208208
git-tag.sh git-verify-tag.sh \
209-
git-applymbox.sh git-applypatch.sh git-am.sh \
209+
git-am.sh \
210210
git-merge.sh git-merge-stupid.sh git-merge-octopus.sh \
211211
git-merge-resolve.sh git-merge-ours.sh \
212-
git-lost-found.sh git-quiltimport.sh
212+
git-lost-found.sh git-quiltimport.sh git-submodule.sh
213213

214214
SCRIPT_PERL = \
215215
git-add--interactive.perl \

0 commit comments

Comments
 (0)