[OpenAFS-devel] git + symlinks

Russ Allbery rra@stanford.edu
Wed, 15 Jun 2011 18:52:00 -0700


Jeff Blaine <jblaine@kickflop.net> writes:

> The following does not reflect reality:

> # On branch master
> # Your branch is ahead of 'origin/master' by 1 commit.
> #
> # Changes not staged for commit:
> #   (use "git add <file>..." to update what will be committed)
> #   (use "git checkout -- <file>..." to discard changes in working
> directory)
> #
> #       modified:   tests/TESTS
> #
> # Untracked files:
> #   (use "git add <file>..." to include in what will be committed)
> #
> #       tests/doc/
> #       tests/ptserver/PTS-commands-manpages-t
> #       tests/venus/
> #       tests/volser/

> Reality:

> tests/doc/man-pages/command-args-t*
> tests/ptserver/PTS-commands-manpages-t -> ../doc/man-pages/command-args-t*
> tests/venus/FS-commands-manpages-t -> ../doc/man-pages/command-args-t*
> tests/volser/VOS-commands-manpages-t -> ../doc/man-pages/command-args-t*

How is that not reality?  Looks like Git is telling you exactly the right
thing.  You added four new files to the tree but you haven't run git add
on any of them.  Three are in new directories, so the whole directory is
showing up as new, and the other one is in an existing directory, so just
the file shows up as new.

(BTW, I would probably -1 this.  The test programs should only be in the
tests/ directory, not somewhere else and symlinked there.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>