Skip to content

Adds unmodified files to output of `git status --porcelain`

Notifications You must be signed in to change notification settings

frnhr/git-fullstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git-fullstatus

A Bash script that shows "unmodified" files along with modified ones from git status --porcelain. This is achieved by combining status --porcelain and ls-files commands.

Installation

Copy git-fullstatus to somewhere in your PATH.

Usage

In a git repository:

$ git-fullstatus
 M some/file
D  another/file
 D more/files/blahblah
A  this/is/an/added/file/i/think
   an/unchanged_file
   another/unchanged_file
$ _

Output format

Output uses the same format as git status --porcelain. Unmodified files are listed with (double space) as XY. See git help status for details.

Testing

Roundup is needed to run tests.

Simply cd to the directory containing git-fullstatus-test.sh and run

$ roundup

Caveats

  • Not really working with non-ascii characters in file names.
  • Not thoroughly tested with respect to different possible Git statuses, mainly when files are renamed. So no guarantees.

TODO

  • support different command line options and formats (non-porcelain, "--short" and "--long" mode, "--ignored", etc.)

Kudos

Original idea / inspiration:
@roger-dueck via http://stackoverflow.com/a/22647655/236195

Quicksort implementation: @gniourf_gniourf via http://stackoverflow.com/a/30576368/236195

About

Adds unmodified files to output of `git status --porcelain`

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages