Skip to content

Conversation

@ringlej
Copy link

@ringlej ringlej commented Oct 4, 2012

Provide several modes for displaying list of added/mod/untrack files

file_list_mode=fileonly
Displays just the filename only regardless of which directory a changed
file is at.

file_list_mode=fullpath
Displays the path and filename of changed files

file_list_mode=topdir
Display just the top level directories if there are changes in that
directory or any sub-directory and filenames if they are in the base
directory of the repo.
This is the behavior that exists before this commit

file_list_mode=fulldir
Display the full directory name for directories where there are changes
and filenames if they are in the base directory of the repo.
IMHO, this is a more useful mode.

likewise-open user id's contain a backslash:
domain\user

The backslash needs to be escaped when colorized

Signed-off-by: Jon Ringle <[email protected]>
Signed-off-by: Jon Ringle <[email protected]>
file_list_mode=fileonly
Displays just the filename only regardless of which directory a changed
file is at.

file_list_mode=fullpath
Displays the path and filename of changed files

file_list_mode=topdir
Display just the top level directories if there are changes in that
directory or any sub-directory and filenames if they are in the base
directory of the repo.
This is the behavior that exists before this commit

file_list_mode=fulldir
Display the full directory name for directories where there are changes
and filenames if they are in the base directory of the repo.
IMHO, this is a more useful mode.

Signed-off-by: Jon Ringle <[email protected]>
You can override on a git per-repo by creating a .git/.git-prompt.conf
NOTE: If you do this, prefix any variable overrides with 'local'
i.e.:
        local file_list_mode=fileonly

Signed-off-by: Jon Ringle <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant