]> git.proxmox.com Git - libgit2.git/commit - tests/libgit2/status/status_helpers.c
Add status flags to force output sort order
authorRussell Belfer <rb@github.com>
Thu, 20 Jun 2013 19:16:06 +0000 (12:16 -0700)
committerRussell Belfer <rb@github.com>
Thu, 20 Jun 2013 19:16:06 +0000 (12:16 -0700)
commit22b6b82f2c0d95ce7a433394a6c0574a5714cf4c
tree432b4d109e004ed816127b9d22e2b8e706da75b0
parentcf300bb9e50c65e4140f7e204243b34f2898fa95
Add status flags to force output sort order

Files in status will, be default, be sorted according to the case
insensitivity of the filesystem that we're running on.  However,
in some cases, this is not desirable.  Even on case insensitive
file systems, 'git status' at the command line will generally use
a case sensitive sort (like 'ls').  Some GUIs prefer to display a
list of file case insensitively even on case-sensitive platforms.

This adds two new flags: GIT_STATUS_OPT_SORT_CASE_SENSITIVELY
and GIT_STATUS_OPT_SORT_CASE_INSENSITIVELY that will override the
default sort order of the status output and give the user control.
This includes tests for exercising these new options and makes
the examples/status.c program emulate core Git and always use a
case sensitive sort.
examples/status.c
include/git2/status.h
src/attr_file.c
src/diff.c
src/index.c
src/status.c
src/submodule.c
src/vector.h
tests-clar/status/status_helpers.c
tests-clar/status/status_helpers.h
tests-clar/status/worktree.c