Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit ec44507

Browse files
committed
request-pull: documentation updates
The original description talked only about what it does. Instead, start it with the purpose of the command, i.e. what it is used for, and then mention what it does to achieve that goal. Clarify what <start>, <url> and <end> means in the context of the overall purpose of the command. Describe the extended syntax of <end> parameter that is used when the local branch name is different from the branch name at the repository the changes are published. Helped-by: Eric Sunshine Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5aae66b commit ec44507

File tree

1 file changed

+49
-6
lines changed

1 file changed

+49
-6
lines changed

Documentation/git-request-pull.txt

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,65 @@ SYNOPSIS
1313
DESCRIPTION
1414
-----------
1515

16-
Summarizes the changes between two commits to the standard output, and includes
17-
the given URL in the generated summary.
16+
Generate a request asking your upstream project to pull changes into
17+
their tree. The request, printed to the standard output, summarizes
18+
the changes and indicates from where they can be pulled.
19+
20+
The upstream project is expected to have the commit named by
21+
`<start>` and the output asks it to integrate the changes you made
22+
since that commit, up to the commit named by `<end>`, by visiting
23+
the repository named by `<url>`.
24+
1825

1926
OPTIONS
2027
-------
2128
-p::
22-
Show patch text
29+
Include patch text in the output.
2330

2431
<start>::
25-
Commit to start at.
32+
Commit to start at. This names a commit that is already in
33+
the upstream history.
2634

2735
<url>::
28-
URL to include in the summary.
36+
The repository URL to be pulled from.
2937

3038
<end>::
31-
Commit to end at; defaults to HEAD.
39+
Commit to end at (defaults to HEAD). This names the commit
40+
at the tip of the history you are asking to be pulled.
41+
+
42+
When the repository named by `<url>` has the commit at a tip of a
43+
ref that is different from the ref you have locally, you can use the
44+
`<local>:<remote>` syntax, to have its local name, a colon `:`, and
45+
its remote name.
46+
47+
48+
EXAMPLE
49+
-------
50+
51+
Imagine that you built your work on your `master` branch on top of
52+
the `v1.0` release, and want it to be integrated to the project.
53+
First you push that change to your public repository for others to
54+
see:
55+
56+
git push https://git.ko.xz/project master
57+
58+
Then, you run this command:
59+
60+
git request-pull v1.0 https://git.ko.xz/project master
61+
62+
which will produce a request to the upstream, summarizing the
63+
changes between the `v1.0` release and your `master`, to pull it
64+
from your public repository.
65+
66+
If you pushed your change to a branch whose name is different from
67+
the one you have locally, e.g.
68+
69+
git push https://git.ko.xz/project master:for-linus
70+
71+
then you can ask that to be pulled with
72+
73+
git request-pull v1.0 https://git.ko.xz/project master:for-linus
74+
3275

3376
GIT
3477
---

0 commit comments

Comments
 (0)