Compare commits
No commits in common. "9ca0a0076360c8fb409b9231792f89ee11c7eb23" and "5c85a294d5f1e918d656cd2e4f91cfc9de6591d8" have entirely different histories.
9ca0a00763
...
5c85a294d5
@ -17,27 +17,6 @@ OPKG_CMDS_TMP=/tmp/opkg_commands
|
|||||||
rm -f $GIT_PULL_TMP
|
rm -f $GIT_PULL_TMP
|
||||||
rm -f $OPKG_CMDS_TMP
|
rm -f $OPKG_CMDS_TMP
|
||||||
|
|
||||||
get_blob () { # get the blob of the file(name) passed as $1
|
|
||||||
# note: this can be used for any file in the filesystem
|
|
||||||
echo $(git hash-object $1)
|
|
||||||
}
|
|
||||||
|
|
||||||
get_commit_for_blob () {
|
|
||||||
blob=$(get_blob $1)
|
|
||||||
if [ ! -z $blob ]; then
|
|
||||||
# search for the blob in all commits for the file(name) $1
|
|
||||||
echo $(echo $(git log --all --pretty=format:%H -- $1) |
|
|
||||||
xargs -I{} bash -c "git ls-tree {} -- $1 |
|
|
||||||
grep -q $blob && echo {}")
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
changed_file_names () {
|
|
||||||
for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do
|
|
||||||
CHANGED_FILE_NAMES+=($fn)
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do
|
for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do
|
||||||
if grep -E -q "(DC.*json|dc.*hex|dc.*bin|tariff.*json)" <<< $fn; then
|
if grep -E -q "(DC.*json|dc.*hex|dc.*bin|tariff.*json)" <<< $fn; then
|
||||||
fsize=0
|
fsize=0
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,10 +5,8 @@
|
|||||||
# And all the file types you're interested in
|
# And all the file types you're interested in
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!.githooks/post-merge
|
!.githooks/post-merge
|
||||||
!.githooks/post-checkout
|
|
||||||
!**/.gitignore
|
!**/.gitignore
|
||||||
!**/.githooks/post-merge
|
!**/.githooks/post-merge
|
||||||
!**/.githooks/post-checkout
|
|
||||||
|
|
||||||
## Except
|
## Except
|
||||||
!etc/atb/*
|
!etc/atb/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user