Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
devicetree
/
devicetree-rebasing
/
90a18b80197e68c9d8df7611b334d674bbe78f0f
/
.
/
scripts
/
index-filter.sh
blob: 9610855020babb0db6e631da1f892dc60000cdd8 [
file
] [
log
] [
blame
]
#!/bin/bash
set
-
e
set
-
o pipefail
$
{
SCRIPTS
}/
rewrite
-
index
.
pl
|
GIT_INDEX_FILE
=
$GIT_INDEX_FILE
.
new git update
-
index
--
index
-
info
if
[
-
f
"$GIT_INDEX_FILE.new"
]
;
then
mv
"$GIT_INDEX_FILE.new"
"$GIT_INDEX_FILE"
else
rm
"$GIT_INDEX_FILE"
fi
exit
0