Skip to content

Commit 8e36002

Browse files
committed
Merge branch 'ma/up-to-date'
Message and doc updates. * ma/up-to-date: treewide: correct several "up-to-date" to "up to date" Documentation/user-manual: update outdated example output
2 parents a48ce37 + 7560f54 commit 8e36002

30 files changed

+46
-44
lines changed

Documentation/git-apply.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ OPTIONS
6666
disables it is in effect), make sure the patch is
6767
applicable to what the current index file records. If
6868
the file to be patched in the working tree is not
69-
up-to-date, it is flagged as an error. This flag also
69+
up to date, it is flagged as an error. This flag also
7070
causes the index file to be updated.
7171

7272
--cached::
@@ -259,7 +259,7 @@ treats these changes as follows.
259259
If `--index` is specified (explicitly or implicitly), then the submodule
260260
commits must match the index exactly for the patch to apply. If any
261261
of the submodules are checked-out, then these check-outs are completely
262-
ignored, i.e., they are not required to be up-to-date or clean and they
262+
ignored, i.e., they are not required to be up to date or clean and they
263263
are not updated.
264264

265265
If `--index` is not specified, then the submodule commits in the patch

Documentation/git-cvsserver.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ access method and requested operation.
223223
That means that even if you offer only read access (e.g. by using
224224
the pserver method), 'git-cvsserver' should have write access to
225225
the database to work reliably (otherwise you need to make sure
226-
that the database is up-to-date any time 'git-cvsserver' is executed).
226+
that the database is up to date any time 'git-cvsserver' is executed).
227227

228228
By default it uses SQLite databases in the Git directory, named
229229
`gitcvs.<module_name>.sqlite`. Note that the SQLite backend creates

Documentation/git-diff-index.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ a 'git write-tree' + 'git diff-tree'. Thus that's the default mode.
8585
The non-cached version asks the question:
8686

8787
show me the differences between HEAD and the currently checked out
88-
tree - index contents _and_ files that aren't up-to-date
88+
tree - index contents _and_ files that aren't up to date
8989

9090
which is obviously a very useful question too, since that tells you what
9191
you *could* commit. Again, the output matches the 'git diff-tree -r'
@@ -100,8 +100,8 @@ have not actually done a 'git update-index' on it yet - there is no
100100
torvalds@ppc970:~/v2.6/linux> git diff-index --abbrev HEAD
101101
:100644 100664 7476bb... 000000... kernel/sched.c
102102

103-
i.e., it shows that the tree has changed, and that `kernel/sched.c` has is
104-
not up-to-date and may contain new stuff. The all-zero sha1 means that to
103+
i.e., it shows that the tree has changed, and that `kernel/sched.c` is
104+
not up to date and may contain new stuff. The all-zero sha1 means that to
105105
get the real diff, you need to look at the object in the working directory
106106
directly rather than do an object-to-object diff.
107107

Documentation/git-merge.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ exception is when the changed index entries are in the state that
141141
would result from the merge already.)
142142

143143
If all named commits are already ancestors of `HEAD`, 'git merge'
144-
will exit early with the message "Already up-to-date."
144+
will exit early with the message "Already up to date."
145145

146146
FAST-FORWARD MERGE
147147
------------------

Documentation/git-rebase.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ which makes little sense.
334334

335335
-f::
336336
--force-rebase::
337-
Force a rebase even if the current branch is up-to-date and
337+
Force a rebase even if the current branch is up to date and
338338
the command without `--force` would return without doing anything.
339339
+
340340
You may find this (or --no-ff with an interactive rebase) helpful after

Documentation/git-rerere.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ development on the topic branch:
205205
------------
206206

207207
you could run `git rebase master topic`, to bring yourself
208-
up-to-date before your topic is ready to be sent upstream.
208+
up to date before your topic is ready to be sent upstream.
209209
This would result in falling back to a three-way merge, and it
210210
would conflict the same way as the test merge you resolved earlier.
211211
'git rerere' will be run by 'git rebase' to help you resolve this

Documentation/git-rm.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ the submodule's history. If it exists the submodule.<name> section
146146
in the linkgit:gitmodules[5] file will also be removed and that file
147147
will be staged (unless --cached or -n are used).
148148

149-
A submodule is considered up-to-date when the HEAD is the same as
149+
A submodule is considered up to date when the HEAD is the same as
150150
recorded in the index, no tracked files are modified and no untracked
151151
files that aren't ignored are present in the submodules work tree.
152152
Ignored files are deemed expendable and won't stop a submodule's work

Documentation/git-svn.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ Any other arguments are passed directly to 'git log'
424424
'set-tree'::
425425
You should consider using 'dcommit' instead of this command.
426426
Commit specified commit or tree objects to SVN. This relies on
427-
your imported fetch data being up-to-date. This makes
427+
your imported fetch data being up to date. This makes
428428
absolutely no attempts to do patching when committing to SVN, it
429429
simply overwrites files with those specified in the tree or
430430
commit. All merging is assumed to have taken place

Documentation/git-update-index.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ will remove the intended effect of the option.
214214
Using --refresh
215215
---------------
216216
`--refresh` does not calculate a new sha1 file or bring the index
217-
up-to-date for mode/content changes. But what it *does* do is to
217+
up to date for mode/content changes. But what it *does* do is to
218218
"re-match" the stat information of a file with the index, so that you
219219
can refresh the index for a file that hasn't been changed but where
220220
the stat entry is out of date.

Documentation/gitcore-tutorial.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ So after you do a `cp -a` to create a new copy, you'll want to do
631631
$ git update-index --refresh
632632
----------------
633633
+
634-
in the new repository to make sure that the index file is up-to-date.
634+
in the new repository to make sure that the index file is up to date.
635635

636636
Note that the second point is true even across machines. You can
637637
duplicate a remote Git repository with *any* regular copy mechanism, be it
@@ -701,7 +701,7 @@ $ git checkout-index -u -a
701701
----------------
702702

703703
where the `-u` flag means that you want the checkout to keep the index
704-
up-to-date (so that you don't have to refresh it afterward), and the
704+
up to date (so that you don't have to refresh it afterward), and the
705705
`-a` flag means "check out all files" (if you have a stale copy or an
706706
older version of a checked out tree you may also need to add the `-f`
707707
flag first, to tell 'git checkout-index' to *force* overwriting of any old
@@ -1283,7 +1283,7 @@ run a single command, 'git-receive-pack'.
12831283

12841284
First, you need to create an empty repository on the remote
12851285
machine that will house your public repository. This empty
1286-
repository will be populated and be kept up-to-date by pushing
1286+
repository will be populated and be kept up to date by pushing
12871287
into it later. Obviously, this repository creation needs to be
12881288
done only once.
12891289

@@ -1450,7 +1450,7 @@ transport protocols (HTTP), you need to keep this repository
14501450
would contain a call to 'git update-server-info'
14511451
but you need to manually enable the hook with
14521452
`mv post-update.sample post-update`. This makes sure
1453-
'git update-server-info' keeps the necessary files up-to-date.
1453+
'git update-server-info' keeps the necessary files up to date.
14541454

14551455
3. Push into the public repository from your primary
14561456
repository.

Documentation/githooks.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ them.
369369

370370
When enabled, the default 'post-update' hook runs
371371
'git update-server-info' to keep the information used by dumb
372-
transports (e.g., HTTP) up-to-date. If you are publishing
372+
transports (e.g., HTTP) up to date. If you are publishing
373373
a Git repository that is accessible via HTTP, you should
374374
probably enable this hook.
375375

Documentation/gitrepository-layout.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ objects/info/packs::
7171
This file is to help dumb transports discover what packs
7272
are available in this object store. Whenever a pack is
7373
added or removed, `git update-server-info` should be run
74-
to keep this file up-to-date if the repository is
74+
to keep this file up to date if the repository is
7575
published for dumb transports. 'git repack' does this
7676
by default.
7777

Documentation/gittutorial.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ summary of the situation with 'git status':
109109
$ git status
110110
On branch master
111111
Changes to be committed:
112-
Your branch is up-to-date with 'origin/master'.
112+
Your branch is up to date with 'origin/master'.
113113
(use "git reset HEAD <file>..." to unstage)
114114

115115
modified: file1

Documentation/merge-options.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ set to `no` at the beginning of them.
3939

4040
--ff-only::
4141
Refuse to merge and exit with a non-zero status unless the
42-
current `HEAD` is already up-to-date or the merge can be
42+
current `HEAD` is already up to date or the merge can be
4343
resolved as a fast-forward.
4444

4545
--log[=<n>]::

Documentation/technical/pack-protocol.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ After reference and capabilities discovery, the client can decide to
199199
terminate the connection by sending a flush-pkt, telling the server it can
200200
now gracefully terminate, and disconnect, when it does not need any pack
201201
data. This can happen with the ls-remote command, and also can happen when
202-
the client already is up-to-date.
202+
the client already is up to date.
203203

204204
Otherwise, it enters the negotiation phase, where the client and
205205
server determine what the minimal packfile necessary for transport is,

Documentation/technical/trivial-merge.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ or the result.
3232
If multiple cases apply, the one used is listed first.
3333

3434
A result which changes the index is an error if the index is not empty
35-
and not up-to-date.
35+
and not up to date.
3636

3737
Entries marked '+' have stat information. Spaces marked '*' don't
3838
affect the result.
@@ -65,7 +65,7 @@ empty, no entry is left for that stage). Otherwise, the given entry is
6565
left in stage 0, and there are no other entries.
6666

6767
A result of "no merge" is an error if the index is not empty and not
68-
up-to-date.
68+
up to date.
6969

7070
*empty* means that the tree must not have a directory-file conflict
7171
with the entry.

Documentation/user-manual.txt

+7-5
Original file line numberDiff line numberDiff line change
@@ -2044,10 +2044,12 @@ If a push would not result in a <<fast-forwards,fast-forward>> of the
20442044
remote branch, then it will fail with an error like:
20452045

20462046
-------------------------------------------------
2047-
error: remote 'refs/heads/master' is not an ancestor of
2048-
local 'refs/heads/master'.
2049-
Maybe you are not up-to-date and need to pull first?
2050-
error: failed to push to 'ssh://yourserver.com/~you/proj.git'
2047+
! [rejected] master -> master (non-fast-forward)
2048+
error: failed to push some refs to '...'
2049+
hint: Updates were rejected because the tip of your current branch is behind
2050+
hint: its remote counterpart. Integrate the remote changes (e.g.
2051+
hint: 'git pull ...') before pushing again.
2052+
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
20512053
-------------------------------------------------
20522054

20532055
This can happen, for example, if you:
@@ -2193,7 +2195,7 @@ $ cd work
21932195
Linus's tree will be stored in the remote-tracking branch named origin/master,
21942196
and can be updated using linkgit:git-fetch[1]; you can track other
21952197
public trees using linkgit:git-remote[1] to set up a "remote" and
2196-
linkgit:git-fetch[1] to keep them up-to-date; see
2198+
linkgit:git-fetch[1] to keep them up to date; see
21972199
<<repositories-and-branches>>.
21982200

21992201
Now create the branches in which you are going to work; these start out

builtin/merge.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
13591359
* If head can reach all the merge then we are up to date.
13601360
* but first the most common case of merging one remote.
13611361
*/
1362-
finish_up_to_date(_("Already up-to-date."));
1362+
finish_up_to_date(_("Already up to date."));
13631363
goto done;
13641364
} else if (fast_forward != FF_NO && !remoteheads->next &&
13651365
!common->next &&
@@ -1442,7 +1442,7 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
14421442
}
14431443
}
14441444
if (up_to_date) {
1445-
finish_up_to_date(_("Already up-to-date. Yeeah!"));
1445+
finish_up_to_date(_("Already up to date. Yeeah!"));
14461446
goto done;
14471447
}
14481448
}

contrib/examples/git-merge.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ case "$allow_fast_forward,$#,$common,$no_commit" in
399399
?,1,"$1",*)
400400
# If head can reach all the merge then we are up to date.
401401
# but first the most common case of merging one remote.
402-
finish_up_to_date "Already up-to-date."
402+
finish_up_to_date "Already up to date."
403403
exit 0
404404
;;
405405
t,1,"$head",*)
@@ -459,7 +459,7 @@ t,1,"$head",*)
459459
done
460460
if test "$up_to_date" = t
461461
then
462-
finish_up_to_date "Already up-to-date. Yeeah!"
462+
finish_up_to_date "Already up to date. Yeeah!"
463463
exit 0
464464
fi
465465
;;

contrib/examples/git-resolve.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fi
4141

4242
case "$common" in
4343
"$merge")
44-
echo "Already up-to-date. Yeeah!"
44+
echo "Already up to date. Yeeah!"
4545
dropheads
4646
exit 0
4747
;;

contrib/subtree/t/t7900-subtree.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ test_expect_success 'merge the added subproj again, should do nothing' '
253253
# this shouldn not actually do anything, since FETCH_HEAD
254254
# is already a parent
255255
result=$(git merge -s ours -m "merge -s -ours" FETCH_HEAD) &&
256-
check_equal "${result}" "Already up-to-date."
256+
check_equal "${result}" "Already up to date."
257257
)
258258
'
259259

git-gui/po/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ to contribute an update. This may be because you would want to improve
165165
the translation of existing messages, or because the git-gui software
166166
itself was updated and there are new messages that need translation.
167167

168-
In any case, make sure you are up-to-date before starting your work:
168+
In any case, make sure you are up to date before starting your work:
169169

170170
$ git checkout master
171171
$ git pull

git-merge-octopus.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ do
7474

7575
case "$LF$common$LF" in
7676
*"$LF$SHA1$LF"*)
77-
eval_gettextln "Already up-to-date with \$pretty_name"
77+
eval_gettextln "Already up to date with \$pretty_name"
7878
continue
7979
;;
8080
esac

git-p4.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3614,7 +3614,7 @@ def run(self, args):
36143614

36153615
def rebase(self):
36163616
if os.system("git update-index --refresh") != 0:
3617-
die("Some files in your working directory are modified and different than what is in your index. You can use git update-index <filename> to bring the index up-to-date or stash away all your changes with git stash.");
3617+
die("Some files in your working directory are modified and different than what is in your index. You can use git update-index <filename> to bring the index up to date or stash away all your changes with git stash.");
36183618
if len(read_pipe("git diff-index HEAD --")) > 0:
36193619
die("You have uncommitted changes. Please commit them before rebasing or stash them away with git stash.");
36203620

merge-recursive.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ int merge_trees(struct merge_options *o,
19271927
}
19281928

19291929
if (oid_eq(&common->object.oid, &merge->object.oid)) {
1930-
output(o, 0, _("Already up-to-date!"));
1930+
output(o, 0, _("Already up to date!"));
19311931
*result = head;
19321932
return 1;
19331933
}

notes-merge.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ int notes_merge(struct notes_merge_options *o,
624624
if (!oidcmp(&remote->object.oid, base_oid)) {
625625
/* Already merged; result == local commit */
626626
if (o->verbosity >= 2)
627-
printf("Already up-to-date!\n");
627+
printf("Already up to date!\n");
628628
oidcpy(result_oid, &local->object.oid);
629629
goto found_result;
630630
}

remote.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ int format_tracking_info(struct branch *branch, struct strbuf *sb)
20842084
_(" (use \"git branch --unset-upstream\" to fixup)\n"));
20852085
} else if (!ours && !theirs) {
20862086
strbuf_addf(sb,
2087-
_("Your branch is up-to-date with '%s'.\n"),
2087+
_("Your branch is up to date with '%s'.\n"),
20882088
base);
20892089
} else if (!theirs) {
20902090
strbuf_addf(sb,

t/t6040-tracking-info.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ test_expect_success 'checkout (up-to-date with upstream)' '
100100
(
101101
cd test && git checkout b6
102102
) >actual &&
103-
test_i18ngrep "Your branch is up-to-date with .origin/master" actual
103+
test_i18ngrep "Your branch is up to date with .origin/master" actual
104104
'
105105

106106
test_expect_success 'status (diverged from upstream)' '
@@ -130,7 +130,7 @@ test_expect_success 'status (up-to-date with upstream)' '
130130
# reports nothing to commit
131131
test_must_fail git commit --dry-run
132132
) >actual &&
133-
test_i18ngrep "Your branch is up-to-date with .origin/master" actual
133+
test_i18ngrep "Your branch is up to date with .origin/master" actual
134134
'
135135

136136
cat >expect <<\EOF

templates/hooks--pre-rebase.sample

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ then
5858
not_in_topic=`git rev-list "^$topic" master`
5959
if test -z "$not_in_topic"
6060
then
61-
echo >&2 "$topic is already up-to-date with master"
61+
echo >&2 "$topic is already up to date with master"
6262
exit 1 ;# we could allow it, but there is no point.
6363
else
6464
exit 0

unpack-trees.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void setup_unpack_trees_porcelain(struct unpack_trees_options *opts,
163163
msgs[ERROR_BIND_OVERLAP] = _("Entry '%s' overlaps with '%s'. Cannot bind.");
164164

165165
msgs[ERROR_SPARSE_NOT_UPTODATE_FILE] =
166-
_("Cannot update sparse checkout: the following entries are not up-to-date:\n%s");
166+
_("Cannot update sparse checkout: the following entries are not up to date:\n%s");
167167
msgs[ERROR_WOULD_LOSE_ORPHANED_OVERWRITTEN] =
168168
_("The following working tree files would be overwritten by sparse checkout update:\n%s");
169169
msgs[ERROR_WOULD_LOSE_ORPHANED_REMOVED] =

0 commit comments

Comments
 (0)