Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109923651
D27646.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1006 B
Referenced Files
None
Subscribers
None
D27646.diff
View Options
Index: head/sys/conf/newvers.sh
===================================================================
--- head/sys/conf/newvers.sh
+++ head/sys/conf/newvers.sh
@@ -162,29 +162,7 @@
git_tree_modified()
{
- # git diff-index lists both files that are known to have changes as
- # well as those with metadata that does not match what is recorded in
- # git's internal state. The latter case is indicated by an all-zero
- # destination file hash.
-
- local fifo
-
- fifo=$(mktemp -u)
- mkfifo -m 600 $fifo || exit 1
- $git_cmd --work-tree=${VCSTOP} diff-index HEAD > $fifo &
- while read smode dmode ssha dsha status file; do
- if ! expr $dsha : '^00*$' >/dev/null; then
- rm $fifo
- return 0
- fi
- if ! $git_cmd --work-tree=${VCSTOP} diff --quiet -- "${file}"; then
- rm $fifo
- return 0
- fi
- done < $fifo
- # No files with content differences.
- rm $fifo
- return 1
+ $git_cmd "--work-tree=${VCSTOP}" -c core.checkStat=minimal -c core.fileMode=off diff --quiet
}
LC_ALL=C; export LC_ALL
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 12, 7:07 AM (18 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16607656
Default Alt Text
D27646.diff (1006 B)
Attached To
Mode
D27646: newvers.sh: Speed up git_tree_modified
Attached
Detach File
Event Timeline
Log In to Comment