updates, add gintent command

This commit is contained in:
RingOfStorms (Joshua Bell) 2024-10-16 00:06:31 -05:00
parent ac729a4b10
commit 38f18d807a
5 changed files with 20 additions and 62 deletions

View file

@ -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
}