updates, add gintent command
This commit is contained in:
parent
ac729a4b10
commit
38f18d807a
5 changed files with 20 additions and 62 deletions
|
@ -142,3 +142,16 @@ nixpkg () {
|
|||
done
|
||||
eval $cmd
|
||||
}
|
||||
|
||||
gintent() {
|
||||
for file in "$@"; do
|
||||
if [ -f "$file" ]; then
|
||||
git add --intent-to-add "$file"
|
||||
git update-index --assume-unchanged "$file"
|
||||
echo "Intent added for $file"
|
||||
else
|
||||
echo "File not found: $file"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue