Skip to content

Commit

Permalink
Set status.showUntrackedFiles to "no"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TheLocehiliosan committed Jul 26, 2015
1 parent 1fe02b6 commit eb60da7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions yadm
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
7 changes: 5 additions & 2 deletions yadm.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb60da7

Please sign in to comment.