From eb60da77b8ce4041518d5cec7b82572319bdb1ce Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Sun, 26 Jul 2015 10:59:13 -0500 Subject: [PATCH] Set `status.showUntrackedFiles` to "no" Each time the yadm repository is initialized or cloned, set `status.showUntrackedFiles` to "no". This prevents untracked files and directories from showing up in status commands. This seems to be the most sensible default, because usually there will be MANY untracked files in a user's $HOME directory. --- README.md | 2 +- yadm | 3 +++ yadm.1 | 7 +++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ea5ec97..06b1ef0 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ Below is an example of how **yadm** can be used to manage SSH configurations. Th ------ - yadm status -uno + yadm status Changes to be committed: (use "git rm --cached ..." to unstage) diff --git a/yadm b/yadm index 774547f..11e6c34 100755 --- a/yadm +++ b/yadm @@ -390,6 +390,9 @@ function configure_repo() { #; set the worktree for the yadm repo git config core.worktree "$YADM_WORK" + #; by default, do not show untracked files and directories + git config status.showUntrackedFiles no + #; possibly used later to ensure we're working on the yadm repo git config yadm.managed 'true' diff --git a/yadm.1 b/yadm.1 index f794b21..621cc38 100644 --- a/yadm.1 +++ b/yadm.1 @@ -156,11 +156,14 @@ already uses the command to manage its own configurations, this command is provided as a way to change configurations of the repository managed by .BR yadm . -One particularly useful case may be to configure the repository so untracked files are hidden from status commands: +One useful case might be to configure the repository so untracked files are shown in status commands. +.B yadm +initially configures its repository so that untracked files are not shown. +If you wish use the default git behavior (to show untracked files and directories), you can remove this configuration. .RS .RS -yadm gitconfig status.showUntrackedFiles no +yadm gitconfig --unset status.showUntrackedFiles .RE .RE .TP