git - gitignore matching character repetitions -



git - gitignore matching character repetitions -

i have directory in git repository files in it, let's phone call matchdir:

$ ls matchdir 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12 da39a3ee5e6b4b0d3255bfef95601890afd80709 file.py someotherfile.txt

i want add together files match 40 hex characters .gitignore file. matchdir/[0-9a-f]{32} doesn't seem work. there way match specific number of repetitions of character in .gitignore file?

matchdir/????????????????????????????????????????

will match files 40 letters. that's not hex letters, it's improve matchdir/* match length. typing 40 ? takes 3 keystrokes under emacs: c-4c-0?.

it's easy search , replace ? [0-9a-f] if want grab hex numbers:

matchdir/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]

git gitignore

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -