|
I see lots of Unix-centric examples using paths that start with ~ and @. How can I make use of those examples on Windows? |
|
The bash shell on Unix machines uses ~ as a shortcut to the user's home directory. The Windows equivalent is %HOMEDRIVE%%HOMEPATH%:
A path prefixed with @ is a repository path. This is true on any platform. @/ is the root of a repository. In the Veracity repository, the code for the vv executable is in @/src/cmd. Repository paths get mapped to disk paths when you create a working copy. I'll create a working copy for the veracity repository in a new directory called veracity:
Then I cd into the new working copy:
The working copy for the veracity repository is at C:\Users\iolsen\veracity on my disk, and that's the @/ repository folder. If I change a file and ask for status, I get results expressed as repository paths:
|
I'm not sure what you're asking. Can you elaborate?
it's just that most of the examples seem to assume we are at a command prompt in the working directory on a Unix based machine, which is not the case for lots of people, so ~/ is C:/ and @/ is where we installed veracity. can we just set the working directory with a command, i guess i just wanted some more details about paths relative or absolute as they are used by vv