Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kivattt/gogitstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

190 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gogitstatus

Go Reference Go Report Card

gogitstatus is a library for finding unstaged/untracked files in local Git repositories
Tested for Linux, FreeBSD and Windows
This library is used in my terminal file manager fen

To try out gogitstatus.Status(), run the showstatus program:

cd showstatus
go build
./showstatus . # In any git repository

To try out gogitstatus.ParseIndex(), run the showindex program:

cd showindex
go build
./showindex index

Running tests

Run go test -race to run all the tests.

Run go test -fuzz=FuzzParseGitIndexFromMemory to fuzz for crashes in the ParseGitIndexFromMemory() function.

If you are developing on Linux, you can run the ./run_windows_test.sh script to test on "Windows" with wine

Git Index file format resources

https://git-scm.com/docs/index-format (missing some visual separation...)
https://github.com/git/git/blob/master/read-cache.c

TODO

  • Deal with .git files that point the real .git folder elsewhere (submodules or something)
  • Support exclude file priority
  • Support SHA-256
  • Support other Git Index versions besides 2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published