git-completion.tcsh: fix redirect with noclobber
commit0b1f688bf453c8569d17908f0c3ca218157d80e4
authorAriel Faigon <github.2009@yendor.com>
Tue, 9 Jun 2015 17:25:15 +0000 (9 10:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Jun 2015 18:21:15 +0000 (9 11:21 -0700)
treef09de9666f89854919edfc039e9301f3319be907
parent282616c72d1d08a77ca4fe1186cb708c38408d87
git-completion.tcsh: fix redirect with noclobber

tcsh users who happen to have 'set noclobber' elsewhere in their
~/.tcshrc or ~/.cshrc startup files get a 'File exist' error, and
the tcsh completion file doesn't get generated/updated.

Adding a `!` in the redirect works correctly for both clobber (default)
and 'set noclobber' users.

Reviewed-by: Christian Couder <christian.couder@gmail.com>
Signed-off-by: Ariel Faigon <github.2009@yendor.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.tcsh