mirror of
https://github.com/git/git.git
synced 2026-03-16 19:50:09 +01:00
Merge branch 'master' into next
* master: Update draft release notes to 1.7.8 make the sample pre-commit hook script reject names with newlines, too Reindent closing bracket using tab instead of spaces
This commit is contained in:
@@ -96,6 +96,9 @@ Updates since v1.7.7
|
||||
* "git stash" learned "--include-untracked" option to stash away
|
||||
untracked/ignored cruft from the working tree.
|
||||
|
||||
* "git submodule clone" does not leak an error message to the UI
|
||||
level unnecessarily anymore.
|
||||
|
||||
* "git submodule update" learned to honor "none" as the value for
|
||||
submodule.<name>.update to specify that the named submodule should
|
||||
not be checked out by default.
|
||||
@@ -113,6 +116,9 @@ Updates since v1.7.7
|
||||
* "gitweb" leaked unescaped control characters from syntax hiliter
|
||||
outputs.
|
||||
|
||||
* "gitweb" can be told to give custom string at the end of the HTML
|
||||
HEAD element.
|
||||
|
||||
* "gitweb" now has its own manual pages.
|
||||
|
||||
|
||||
@@ -150,6 +156,10 @@ included in this release.
|
||||
with too many refs were unnecessarily slow.
|
||||
(merge 17d68a54d jp/get-ref-dir-unsorted later to maint).
|
||||
|
||||
* "git fetch --prune" was unsafe when used with refspecs from the
|
||||
command line.
|
||||
(merge e8c1e6c cn/fetch-prune later to maint).
|
||||
|
||||
* Report from "git commit" on untracked files was confused under
|
||||
core.ignorecase option.
|
||||
(merge 2548183b jk/name-hash-dirent later to maint).
|
||||
@@ -198,9 +208,15 @@ included in this release.
|
||||
of a blob, when JavaScript actions are enabled.
|
||||
(merge 2b07ff3ff ps/gitweb-js-with-lineno later to maint).
|
||||
|
||||
* The logic to filter out forked projects in the project list in
|
||||
"gitweb" was broken for some time.
|
||||
(merge 53c632f jm/maint-gitweb-filter-forks-fix later to maint).
|
||||
|
||||
|
||||
|
||||
---
|
||||
exec >/var/tmp/1
|
||||
O=v1.7.7-485-g9ee3d37
|
||||
O=v1.7.7.1-453-g0b26d1e
|
||||
echo O=$(git describe --always master)
|
||||
git log --first-parent --oneline --reverse ^$O master
|
||||
echo
|
||||
|
||||
@@ -18,6 +18,9 @@ fi
|
||||
# If you want to allow non-ascii filenames set this variable to true.
|
||||
allownonascii=$(git config hooks.allownonascii)
|
||||
|
||||
# Redirect output to stderr.
|
||||
exec 1>&2
|
||||
|
||||
# Cross platform projects tend to avoid non-ascii filenames; prevent
|
||||
# them from being added to the repository. We exploit the fact that the
|
||||
# printable range starts at the space character and ends with tilde.
|
||||
@@ -25,8 +28,8 @@ if [ "$allownonascii" != "true" ] &&
|
||||
# Note that the use of brackets around a tr range is ok here, (it's
|
||||
# even required, for portability to Solaris 10's /usr/bin/tr), since
|
||||
# the square bracket bytes happen to fall in the designated range.
|
||||
test "$(git diff --cached --name-only --diff-filter=A -z $against |
|
||||
LC_ALL=C tr -d '[ -~]\0')"
|
||||
test $(git diff --cached --name-only --diff-filter=A -z $against |
|
||||
LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
|
||||
then
|
||||
echo "Error: Attempt to add a non-ascii file name."
|
||||
echo
|
||||
@@ -43,4 +46,5 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# If there are whitespace errors, print the offending file names and fail.
|
||||
exec git diff-index --check --cached $against --
|
||||
|
||||
@@ -396,7 +396,7 @@ static void wt_status_collect_changes_worktree(struct wt_status *s)
|
||||
if (s->ignore_submodule_arg) {
|
||||
DIFF_OPT_SET(&rev.diffopt, OVERRIDE_SUBMODULE_CONFIG);
|
||||
handle_ignore_submodules_arg(&rev.diffopt, s->ignore_submodule_arg);
|
||||
}
|
||||
}
|
||||
rev.diffopt.format_callback = wt_status_collect_changed_cb;
|
||||
rev.diffopt.format_callback_data = s;
|
||||
init_pathspec(&rev.prune_data, s->pathspec);
|
||||
|
||||
Reference in New Issue
Block a user