[fr] fixes
[tails/matsa.git] / wiki / src / contribute / l10n_tricks / git-clean-po
blob4e6d8c9523ade17d0b8811eb33f64b5f5603f629
1 #!/bin/sh
3 # Remove modified *.po *.pot files when they are not staged for commit
4 # In case one file type doesn't exist in the directory, the whole command
5 # exits with an error, so splitting into two commands.
6 git checkout *.po 2>/dev/null
7 git checkout *.pot 2>/dev/null
9 # Remove ignored *.pot files
10 git clean -f -q -x *.pot >/dev/null