Skip to content

msilvestre/git-secret-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

git-secret-diff

A diff tool for git secret

What is git-secret-diff

git secret already has a changes option. But it does not make diffs with other commits. git-secret-diff allows you to compare encrypted files beetween specific commits or beetween a specific commit and your local changes. It makes use of the already existing git secret changes.

Prerequesites

git secret should be installed.

Command

gitsecret_diff [files to compare] [-a | --sha1] [-b | --sha2] [-w | --working-dir] [-p | --password] [-h | --help]

Options

  files to compare    - If you want to make diff only on certain files of git secret  
  -a | --sha1         - First commit sha. 
                        If only sha1 is provided then git-secret-diff will make a diff beetween sha1 and local.
                        If no sha is provided git-secret-dif will make a diff beetween local decrypted files and the encrypted ones. 
  -b | --sha2         - Second commit sha. If sha2 is provided then git-secret-diff will make a diff beetween sha1 and sha2
                        If Sha2 is provided then sha1 must also exist
  -w | --working-dir  - The working dir for the script to work.
  -p | --password     - The password for git secret reveal
  -h | --help         - Print help screen

Limitations

Due to a bug on git secret changes if various files are provided on [files to compare] only the first one will be compared. There's already this issue on git secret project.

Notes

Only tested on macOS. If you are using macOS please install gnu getopt, otherwise it might not work.

Contributors

About

A diff tool for git secret

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages