- Notifications
You must be signed in to change notification settings - Fork26.4k
Commitf170e4b


Junio C Hamano
Linus Torvalds
[PATCH] fetch/pull: short-hand notation for remote repositories.
Since pull and fetch are done often against the same remoterepository repeatedly, keeping the URL to pull from along withthe name of the head to use in $GIT_DIR/branches/$name makes alot of sense. Adopt that convention from Cogito, and try to becompatible when possible; storing a partial URL and completingit with a trailing path may not be understood by Cogito.While we are at it, fix pulling a tag. Earlier, we updated onlyrefs/tags/$tag without updating FETCH_HEAD, and calledresolve-script using a stale (or absent) FETCH_HEAD.Signed-off-by: Junio C Hamano <junkio@cox.net>Signed-off-by: Linus Torvalds <torvalds@osdl.org>1 parent02d57da commitf170e4b
4 files changed
+104
-32
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
|
Lines changed: 21 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 | 3 |
| |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
13 | 8 |
| |
14 | 9 |
| |
15 | 10 |
| |
16 | 11 |
| |
17 | 12 |
| |
18 |
| - | |
19 |
| - | |
20 |
| - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
21 | 16 |
| |
22 | 17 |
| |
23 |
| - | |
| 18 | + | |
24 | 19 |
| |
25 | 20 |
| |
26 | 21 |
| |
27 | 22 |
| |
28 | 23 |
| |
29 |
| - | |
| 24 | + | |
30 | 25 |
| |
31 | 26 |
| |
| 27 | + | |
32 | 28 |
| |
33 |
| - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + |
Lines changed: 79 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + |
Lines changed: 3 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
| 5 | + | |
4 | 6 |
| |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
| 7 | + | |
21 | 8 |
| |
22 | 9 |
| |
23 | 10 |
| |
|
0 commit comments
Comments
(0)