1
0
Fork 0
mirror of synced 2024-12-21 06:01:08 -05:00

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.
This commit is contained in:
Tim Byrne 2015-07-26 10:59:13 -05:00
parent 1fe02b6da1
commit eb60da77b8
3 changed files with 9 additions and 3 deletions

View file

@ -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 <file>..." to unstage)

3
yadm
View file

@ -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'

7
yadm.1
View file

@ -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