Skip to content

Commit 69bc0e2

Browse files
author
Junio C Hamano
committed
Merge branch 'maint'
* maint: Update draft release notes for 1.5.0.1 Convert update-index references in docs to add. Attempt to improve git-rebase lead-in description. Do not take mode bits from index after type change. git-blame: prevent argument parsing segfault Make gitk save and restore window pane position on Linux and Cygwin. Make gitk save and restore the user set window position. [PATCH] gitk: Use show-ref instead of ls-remote [PATCH] Make gitk work reasonably well on Cygwin. [PATCH] gitk - remove trailing whitespace from a few lines. Change git repo-config to git config
2 parents 2afc29a + 21b4875 commit 69bc0e2

17 files changed

+97
-40
lines changed

Documentation/RelNotes-1.5.0.1.txt

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,31 @@ Fixes since v1.5.0
77
* Documentation updates
88

99
- Clarifications and corrections to 1.5.0 release notes.
10+
1011
- The main documentation did not link to git-remote documentation.
1112

13+
- Clarified introductory text of git-rebase documentation.
14+
15+
- Converted remaining mentions of update-index on Porcelain
16+
documents to git-add/git-rm.
17+
1218
* Bugfixes
1319

1420
- git-daemon marks the listening sockets with FD_CLOEXEC so
1521
that it won't be leaked into the children.
1622

23+
- segfault from git-blame when the mandatory pathname
24+
parameter was missing was fixed; usage() message is given
25+
instead.
26+
27+
* Tweaks
28+
29+
- sliding mmap() inefficiently mmaped the same region of a
30+
packfile with an access pattern that used objects in the
31+
reverse order. This has been made more efficient.
32+
1733
--
18-
O=v1.5.0-7-g37b73cf
34+
exec >/var/tmp/1
35+
O=v1.5.0-24-g460ca30
1936
echo O=`git describe maint`
20-
git shortlog --no-merges $O..
37+
git shortlog --no-merges $O..maint

Documentation/core-intro.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ directory tree, and renaming a file does not change the object that
106106
file is associated with in any way.
107107

108108
A blob is typically created when gitlink:git-update-index[1]
109-
is run, and its data can be accessed by gitlink:git-cat-file[1].
109+
(or gitlink:git-add[1]) is run, and its data can be accessed by
110+
gitlink:git-cat-file[1].
110111

111112
Tree Object
112113
~~~~~~~~~~~

Documentation/git-checkout.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ OPTIONS
6161
+
6262
When a merge conflict happens, the index entries for conflicting
6363
paths are left unmerged, and you need to resolve the conflicts
64-
and mark the resolved paths with `git update-index`.
64+
and mark the resolved paths with `git add` (or `git rm` if the merge
65+
should result in deletion of the path).
6566

6667
<new_branch>::
6768
Name for the new branch.
@@ -179,11 +180,11 @@ fatal: merge program failed
179180
At this point, `git diff` shows the changes cleanly merged as in
180181
the previous example, as well as the changes in the conflicted
181182
files. Edit and resolve the conflict and mark it resolved with
182-
`git update-index` as usual:
183+
`git add` as usual:
183184
+
184185
------------
185186
$ edit frotz
186-
$ git update-index frotz
187+
$ git add frotz
187188
------------
188189

189190

Documentation/git-merge.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ After seeing a conflict, you can do two things:
136136

137137
* Resolve the conflicts. `git-diff` would report only the
138138
conflicting paths because of the above 2. and 3.. Edit the
139-
working tree files into a desirable shape, `git-update-index`
139+
working tree files into a desirable shape, `git-add` or `git-rm`
140140
them, to make the index file contain what the merge result
141141
should be, and run `git-commit` to commit the result.
142142

Documentation/git-rebase.txt

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,20 @@ SYNOPSIS
1313

1414
DESCRIPTION
1515
-----------
16-
git-rebase replaces <branch> with a new branch of the same name. When
17-
the --onto option is provided the new branch starts out with a HEAD equal
18-
to <newbase>, otherwise it is equal to <upstream>. It then attempts to
19-
create a new commit for each commit from the original <branch> that does
20-
not exist in the <upstream> branch.
16+
If <branch> is specified, git-rebase will perform an automatic
17+
`git checkout <branch>` before doing anything else. Otherwise
18+
it remains on the current branch.
19+
20+
All changes made by commits in the current branch but that are not
21+
in <upstream> are saved to a temporary area. This is the same set
22+
of commits that would be shown by `git log <upstream>..HEAD`.
23+
24+
The current branch is reset to <upstream>, or <newbase> if the
25+
--onto option was supplied. This has the exact same effect as
26+
`git reset --hard <upstream>` (or <newbase>).
27+
28+
The commits that were previously saved into the temporary area are
29+
then reapplied to the current branch, one by one, in order.
2130

2231
It is possible that a merge failure will prevent this process from being
2332
completely automatic. You will have to resolve any such merge failure
@@ -26,9 +35,6 @@ that caused the merge failure with `git rebase --skip`. To restore the
2635
original <branch> and remove the .dotest working files, use the command
2736
`git rebase --abort` instead.
2837

29-
Note that if <branch> is not specified on the command line, the currently
30-
checked out branch is used.
31-
3238
Assume the following history exists and the current branch is "topic":
3339

3440
------------
@@ -142,7 +148,7 @@ file you edit, you need to tell git that the conflict has been resolved,
142148
typically this would be done with
143149

144150

145-
git update-index <filename>
151+
git add <filename>
146152

147153

148154
After resolving the conflict manually and updating the index with the

Documentation/git-rerere.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ If this three-way merge resolves cleanly, the result is written
163163
out to your working tree file, so you would not have to manually
164164
resolve it. Note that `git-rerere` leaves the index file alone,
165165
so you still need to do the final sanity checks with `git diff`
166-
(or `git diff -c`) and `git update-index` when you are
167-
satisfied.
166+
(or `git diff -c`) and `git add` when you are satisfied.
168167

169168
As a convenience measure, `git-merge` automatically invokes
170169
`git-rerere` when it exits with a failed automerge, which

Documentation/git-reset.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ current HEAD.
9494
<2> Rewind the master branch to get rid of those three commits.
9595
<3> Switch to "topic/wip" branch and keep working.
9696

97-
Undo update-index::
97+
Undo add::
9898
+
9999
------------
100100
$ edit <1>
101-
$ git-update-index frotz.c filfre.c
101+
$ git add frotz.c filfre.c
102102
$ mailx <2>
103103
$ git reset <3>
104104
$ git pull git://info.example.com/ nitfol <4>

Documentation/git-runstatus.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ DESCRIPTION
1616
Examines paths in the working tree that has changes unrecorded
1717
to the index file, and changes between the index file and the
1818
current HEAD commit. The former paths are what you _could_
19-
commit by running 'git-update-index' before running 'git
19+
commit by running 'git add' (or 'git rm' if you are deleting) before running 'git
2020
commit', and the latter paths are what you _would_ commit by
2121
running 'git commit'.
2222

Documentation/git-status.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DESCRIPTION
1515
Examines paths in the working tree that has changes unrecorded
1616
to the index file, and changes between the index file and the
1717
current HEAD commit. The former paths are what you _could_
18-
commit by running 'git-update-index' before running 'git
18+
commit by running 'git add' before running 'git
1919
commit', and the latter paths are what you _would_ commit by
2020
running 'git commit'.
2121

Documentation/tutorial-2.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ $ git diff
227227
@@ -1 +1,2 @@
228228
hello world!
229229
+hello world, again
230-
$ git update-index file.txt
230+
$ git add file.txt
231231
$ git diff
232232
------------------------------------------------
233233

@@ -260,7 +260,7 @@ hello world!
260260
hello world, again
261261
------------------------------------------------
262262

263-
So what our "git update-index" did was store a new blob and then put
263+
So what our "git add" did was store a new blob and then put
264264
a reference to it in the index file. If we modify the file again,
265265
we'll see that the new modifications are reflected in the "git-diff"
266266
output:

0 commit comments

Comments
 (0)