代码拉取完成,页面将自动刷新
同步操作将从 IvorySQL/IvorySQL 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
# This script is used to produce git context diffs
# Supplied parameters:
# $1 $2 $3 $4 $5 $6 $7
# path old-file old-hash old-mode new-file new-hash new-mode
# 'path' is the git-tree-relative path of the file being diff'ed
=comment
This info is copied from the old wiki page on Working with git:
Context diffs with Git
Copy git-external-diff into libexec/git-core/ of your git installation
and configure git to use that wrapper with:
git config [--global] diff.external git-external-diff
--global makes the configuration global for your user - otherwise it is
just configured for the current repository.
For every command which displays diffs in some way you can use the
parameter "--[no-]-ext-diff" to enable respectively disable using the
external diff command.
For the git diff command --ext-diff is enabled by default - for any
other command like git log -p or git format-patch it is not!
This method should work on all platforms supported by git.
If you do not want to configure the external wrapper permanently or you
want to overwrite it you can also invoke git like:
export GIT_EXTERNAL_DIFF=git-external-diff
git diff --[no-]ext-diff
Alternatively, configure a git alias in ~/.gitconfig or .git/config:
[alias]
cdiff = !GIT_EXTERNAL_DIFF=git-context-diff git diff
=cut
old_hash="$3"
new_hash=$(git hash-object "$5")
# no change?
[ "$old_hash" = "$new_hash" ] && exit 0
[ "$DIFF_OPTS" = "" ] && DIFF_OPTS='-pcd'
echo "diff --git a/$1 b/$1"
echo "new file mode $7"
echo "index ${old_hash:0:7}..${new_hash:0:7}"
diff --label a/"$1" --label b/"$1" $DIFF_OPTS "$2" "$5"
exit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。