* [PATCH 1/2] gitignore.txt: clarify default core.excludesfile path
@ 2018-06-27 4:46 Todd Zullinger
2018-06-27 4:46 ` [PATCH 2/2] dir.c: fix typos in core.excludesfile comment Todd Zullinger
2018-06-27 19:16 ` [PATCH 1/2] gitignore.txt: clarify default core.excludesfile path Junio C Hamano
0 siblings, 2 replies; 4+ messages in thread
From: Todd Zullinger @ 2018-06-27 4:46 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
The default core.excludesfile path is $XDG_CONFIG_HOME/git/ignore.
$HOME/.config/git/ignore is used if XDG_CONFIG_HOME is empty or unset,
as described later in the document.
Signed-off-by: Todd Zullinger <tmz@pobox.com>
---
Documentation/gitignore.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt
index ff5d7f9ed6..d107daaffd 100644
--- a/Documentation/gitignore.txt
+++ b/Documentation/gitignore.txt
@@ -7,7 +7,7 @@ gitignore - Specifies intentionally untracked files to ignore
SYNOPSIS
--------
-$HOME/.config/git/ignore, $GIT_DIR/info/exclude, .gitignore
+$XDG_CONFIG_HOME/git/ignore, $GIT_DIR/info/exclude, .gitignore
DESCRIPTION
-----------
--
2.18.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] dir.c: fix typos in core.excludesfile comment
2018-06-27 4:46 [PATCH 1/2] gitignore.txt: clarify default core.excludesfile path Todd Zullinger
@ 2018-06-27 4:46 ` Todd Zullinger
2018-06-27 19:16 ` [PATCH 1/2] gitignore.txt: clarify default core.excludesfile path Junio C Hamano
1 sibling, 0 replies; 4+ messages in thread
From: Todd Zullinger @ 2018-06-27 4:46 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Make it easier to find references to core.excludesfile and the default
$XDG_CONFIG_HOME/git/ignore path.
Signed-off-by: Todd Zullinger <tmz@pobox.com>
---
I noticed the typo in core.excludesfile and $XDG_CONFIG_HOME while I was
verifing the previous change to clarify the documentation matched the code.
Fixing these minor issues in the comments will hopefully make it easier for
others to find the right places in the code in the future.
dir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dir.c b/dir.c
index fe9bf58e4c..363a4837ae 100644
--- a/dir.c
+++ b/dir.c
@@ -2497,7 +2497,7 @@ void setup_standard_excludes(struct dir_struct *dir)
{
dir->exclude_per_dir = ".gitignore";
- /* core.excludefile defaulting to $XDG_HOME/git/ignore */
+ /* core.excludesfile defaulting to $XDG_CONFIG_HOME/git/ignore */
if (!excludes_file)
excludes_file = xdg_config_home("ignore");
if (excludes_file && !access_or_warn(excludes_file, R_OK, 0))
--
2.18.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] gitignore.txt: clarify default core.excludesfile path
2018-06-27 4:46 [PATCH 1/2] gitignore.txt: clarify default core.excludesfile path Todd Zullinger
2018-06-27 4:46 ` [PATCH 2/2] dir.c: fix typos in core.excludesfile comment Todd Zullinger
@ 2018-06-27 19:16 ` Junio C Hamano
2018-06-27 20:07 ` Todd Zullinger
1 sibling, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2018-06-27 19:16 UTC (permalink / raw)
To: Todd Zullinger; +Cc: git
Todd Zullinger <tmz@pobox.com> writes:
> The default core.excludesfile path is $XDG_CONFIG_HOME/git/ignore.
> $HOME/.config/git/ignore is used if XDG_CONFIG_HOME is empty or unset,
... because $HOME/.config is the default value for XDG_CONFIG_HOME
when it is unset, that is? If so, the change makes sense.
> as described later in the document.
> Signed-off-by: Todd Zullinger <tmz@pobox.com>
> ---
> Documentation/gitignore.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt
> index ff5d7f9ed6..d107daaffd 100644
> --- a/Documentation/gitignore.txt
> +++ b/Documentation/gitignore.txt
> @@ -7,7 +7,7 @@ gitignore - Specifies intentionally untracked files to ignore
>
> SYNOPSIS
> --------
> -$HOME/.config/git/ignore, $GIT_DIR/info/exclude, .gitignore
> +$XDG_CONFIG_HOME/git/ignore, $GIT_DIR/info/exclude, .gitignore
>
> DESCRIPTION
> -----------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] gitignore.txt: clarify default core.excludesfile path
2018-06-27 19:16 ` [PATCH 1/2] gitignore.txt: clarify default core.excludesfile path Junio C Hamano
@ 2018-06-27 20:07 ` Todd Zullinger
0 siblings, 0 replies; 4+ messages in thread
From: Todd Zullinger @ 2018-06-27 20:07 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Junio C Hamano wrote:
> Todd Zullinger <tmz@pobox.com> writes:
>
>> The default core.excludesfile path is $XDG_CONFIG_HOME/git/ignore.
>> $HOME/.config/git/ignore is used if XDG_CONFIG_HOME is empty or unset,
>
> ... because $HOME/.config is the default value for XDG_CONFIG_HOME
> when it is unset, that is? If so, the change makes sense.
Indeed, that's the fallback path.
Thanks,
--
Todd
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-06-27 20:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-27 4:46 [PATCH 1/2] gitignore.txt: clarify default core.excludesfile path Todd Zullinger
2018-06-27 4:46 ` [PATCH 2/2] dir.c: fix typos in core.excludesfile comment Todd Zullinger
2018-06-27 19:16 ` [PATCH 1/2] gitignore.txt: clarify default core.excludesfile path Junio C Hamano
2018-06-27 20:07 ` Todd Zullinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).