RichiH/vcsh — pull request #43 by madduck (2013-04-23 11:26:10+00:00)
Title: 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