From: martin f. krafft Date: Tue, 23 Apr 2013 10:46:32 +0000 (+0200) Subject: Anchor ignore lines X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/caeaa9865cd39dc44caf78399b696a8dd14d0c5a?hp=caeaa9865cd39dc44caf78399b696a8dd14d0c5a Anchor ignore lines The lines written to the gitignore file by write-gitignore were not anchored. This means that a line like !.zsh might cause not only ~/.zsh to be ignored, but also ~/TODO/.zsh, which is potentially a problem. This patch simply prepends a '/' to each entry in the gitignore file, thereby anchoring the entry to the repository root. Note that the initial '*' must not be anchored, else files in subdirectories wouldn't be ignored. Signed-off-by: martin f. krafft ---