Commits

Author Commit Message Labels Comments Date
Greg Ward
Add %r format specified to show current revision. (Currently not implemented for any VC system, but hopefully coming soon in Subversion support.)
Greg Ward
Compile with -O2 to get warnings about unused results.
dserpell
Handle errors in chdir.
Greg Ward
Add test for failing chdir("..").
Greg Ward
Add tests for %n format spec.
dserpell
Add a new format spec (%n) for the name of the detected VC system.
Greg Ward
Make test script not depend on default format string.
Greg Ward
Add parse_args(), so caller can pass a format string (or debug flag).
Greg Ward
Simplify the probe algorithm a bit: just assume we're always going to walk up the directory tree.
Greg Ward
Improve reporting of test success/failure.
Greg Ward
More test tweaks.
Greg Ward
If .git/HEAD or .hg/branch not readable, assume not in a git/hg repo.
Greg Ward
Beef up tests.
Greg Ward
Fix git/hg support by walking up the directory tree if current dir not claimed by any VC context.
Greg Ward
Add tests for git (reveals that git support is broken like hg support).
Greg Ward
Add a simple test script: just tests "print current branch". (Already found a bug in hg support: oops.)
Greg Ward
Ignore the vcprompt executable.
Greg Ward
Use a format string for the output so it works better in non-VC dir. - add 'format' member to options_t - rename other members of options_t for clarity - add parse_format() - rewrite print_result() to obey format string
Greg Ward
Add a little README.
Greg Ward
Run in non-debug mode.
Greg Ward
Remove cruft.
Greg Ward
Factor out struct vccontext_t: oooh, object-oriented C.
Greg Ward
Add Mercurial (hg) support: again, only shows current branch.
Greg Ward
Add git support (current branch only, as with CVS support).
Greg Ward
Factor out read_first_line().
Greg Ward
Stop passing options object around: make it a static global in common.c.
Greg Ward
Factor out isdir().
Greg Ward
Initial working version. Only supports CVS (current branch).
  1. Prev
  2. Next