From fb29858dae822dca8547c03d04d6b329c9449010 Mon Sep 17 00:00:00 2001 From: Carlos Hernandez Date: Sun, 24 Sep 2017 07:51:46 -0600 Subject: [PATCH] doc encrypt on change option for hide cmd --- man/man1/git-secret-hide.1 | 2 +- man/man1/git-secret-hide.1.ronn | 2 +- src/commands/git_secret_hide.sh | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/man/man1/git-secret-hide.1 b/man/man1/git-secret-hide.1 index 1a50edf7..cd5f4884 100644 --- a/man/man1/git-secret-hide.1 +++ b/man/man1/git-secret-hide.1 @@ -27,7 +27,7 @@ It is possible to modify the names of the encrypted files by setting \fBSECRETS_ \-v \- verbose, shows extra information\. \-c \- deletes encrypted files before creating new ones\. \-d \- deletes unencrypted files after encryption\. -\-u \- updates/adds hash of unecrypted files to path mappings, (encrypts files on change only)\. +\-m \- encrypt files only when modified\. \-h \- shows help\. . .fi diff --git a/man/man1/git-secret-hide.1.ronn b/man/man1/git-secret-hide.1.ronn index 3723aa43..fe9475bf 100644 --- a/man/man1/git-secret-hide.1.ronn +++ b/man/man1/git-secret-hide.1.ronn @@ -17,7 +17,7 @@ It is possible to modify the names of the encrypted files by setting `SECRETS_EX -v - verbose, shows extra information. -c - deletes encrypted files before creating new ones. -d - deletes unencrypted files after encryption. - -u - updates/adds hash of unecrypted files to path mappings (encrypts files only on change). + -m - encrypt files only when modified. -h - shows help. diff --git a/src/commands/git_secret_hide.sh b/src/commands/git_secret_hide.sh index efcd0feb..9a1e3ab9 100644 --- a/src/commands/git_secret_hide.sh +++ b/src/commands/git_secret_hide.sh @@ -86,13 +86,13 @@ function hide { OPTIND=1 - while getopts 'cduvh' opt; do + while getopts 'cdmvh' opt; do case "$opt" in c) clean=1;; d) delete=1;; - u) fsdb_update_hash=1;; + m) fsdb_update_hash=1;; v) verbose='v';; @@ -142,7 +142,7 @@ function hide { # shellcheck disable=2086 $gpg_local --use-agent --yes --trust-model=always --encrypt \ $recipients -o "$output_path" "$input_path" > /dev/null 2>&1 - # If -u option was provided, it will update unencrypted file hash + # If -m option was provided, it will update unencrypted file hash local key="$filename" local hash="$file_hash" # Update file hash if required in fsdb