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:
parent
1fe02b6da1
commit
eb60da77b8
3 changed files with 9 additions and 3 deletions
|
@ -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:
|
Changes to be committed:
|
||||||
(use "git rm --cached <file>..." to unstage)
|
(use "git rm --cached <file>..." to unstage)
|
||||||
|
|
3
yadm
3
yadm
|
@ -390,6 +390,9 @@ function configure_repo() {
|
||||||
#; set the worktree for the yadm repo
|
#; set the worktree for the yadm repo
|
||||||
git config core.worktree "$YADM_WORK"
|
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
|
#; possibly used later to ensure we're working on the yadm repo
|
||||||
git config yadm.managed 'true'
|
git config yadm.managed 'true'
|
||||||
|
|
||||||
|
|
7
yadm.1
7
yadm.1
|
@ -156,11 +156,14 @@ already uses the
|
||||||
command to manage its own configurations,
|
command to manage its own configurations,
|
||||||
this command is provided as a way to change configurations of the repository managed by
|
this command is provided as a way to change configurations of the repository managed by
|
||||||
.BR yadm .
|
.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
|
||||||
.RS
|
.RS
|
||||||
yadm gitconfig status.showUntrackedFiles no
|
yadm gitconfig --unset status.showUntrackedFiles
|
||||||
.RE
|
.RE
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
|
|
Loading…
Reference in a new issue