git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc: remove "directory cache" from man pages
@ 2021-01-08 16:54 Utku Gultopu via GitGitGadget
  2021-01-08 18:32 ` Taylor Blau
  0 siblings, 1 reply; 5+ messages in thread
From: Utku Gultopu via GitGitGadget @ 2021-01-08 16:54 UTC (permalink / raw)
  To: git; +Cc: Utku Gultopu, Utku Gultopu

From: Utku Gultopu <ugultopu@gmail.com>

"directory cache" (or "directory cache index", "cache") are obsolete
terms which have been superseded by "index". Keeping them in the
documentation may be a source of confusion. This commit replaces
them with the current term, "index", on man pages.

Signed-off-by: Utku Gultopu <ugultopu@gmail.com>
---
    doc: remove "directory cache" from man pages
    
    "directory cache" (or "directory cache index", "cache") are obsolete
    terms which have been superseded by "index". Keeping them in the
    documentation may be a source of confusion. This commit replaces them
    with the current term, "index", on man pages.

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-943%2Fugultopu%2Fremove-directory-cache-from-man-pages-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-943/ugultopu/remove-directory-cache-from-man-pages-v1
Pull-Request: https://github.com/git/git/pull/943

 Documentation/git-ls-files.txt     | 5 ++---
 Documentation/git-update-index.txt | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt
index cbcf5263dd0..0a3b5265b34 100644
--- a/Documentation/git-ls-files.txt
+++ b/Documentation/git-ls-files.txt
@@ -23,9 +23,8 @@ SYNOPSIS
 
 DESCRIPTION
 -----------
-This merges the file listing in the directory cache index with the
-actual working directory list, and shows different combinations of the
-two.
+This merges the file listing in the index with the actual working
+directory list, and shows different combinations of the two.
 
 One or more of the options below may be used to determine the files
 shown:
diff --git a/Documentation/git-update-index.txt b/Documentation/git-update-index.txt
index 1489cb09a09..2853f168d97 100644
--- a/Documentation/git-update-index.txt
+++ b/Documentation/git-update-index.txt
@@ -30,9 +30,8 @@ SYNOPSIS
 
 DESCRIPTION
 -----------
-Modifies the index or directory cache. Each file mentioned is updated
-into the index and any 'unmerged' or 'needs updating' state is
-cleared.
+Modifies the index. Each file mentioned is updated into the index and
+any 'unmerged' or 'needs updating' state is cleared.
 
 See also linkgit:git-add[1] for a more user-friendly way to do some of
 the most common operations on the index.

base-commit: 72c4083ddf91b489b7b7b812df67ee8842177d98
-- 
gitgitgadget

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] doc: remove "directory cache" from man pages
  2021-01-08 16:54 [PATCH] doc: remove "directory cache" from man pages Utku Gultopu via GitGitGadget
@ 2021-01-08 18:32 ` Taylor Blau
  2021-01-08 19:51   ` Utku
  0 siblings, 1 reply; 5+ messages in thread
From: Taylor Blau @ 2021-01-08 18:32 UTC (permalink / raw)
  To: Utku Gultopu via GitGitGadget; +Cc: git, Utku Gultopu

Hi Utku,

On Fri, Jan 08, 2021 at 04:54:56PM +0000, Utku Gultopu via GitGitGadget wrote:
> From: Utku Gultopu <ugultopu@gmail.com>
>
> "directory cache" (or "directory cache index", "cache") are obsolete
> terms which have been superseded by "index". Keeping them in the
> documentation may be a source of confusion. This commit replaces
> them with the current term, "index", on man pages.

This patch looks good to me. There is another mention of the old-style
"directory cache" in the user manual (Documentation/user-manual.txt)
which could probably be removed:

    Note that in older documentation you may see the index called the
    "current directory cache" or just the "cache".  It has three important
    properties:

Thanks,
Taylor

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] doc: remove "directory cache" from man pages
  2021-01-08 18:32 ` Taylor Blau
@ 2021-01-08 19:51   ` Utku
  2021-01-08 19:52     ` Taylor Blau
  0 siblings, 1 reply; 5+ messages in thread
From: Utku @ 2021-01-08 19:51 UTC (permalink / raw)
  To: Taylor Blau; +Cc: Utku Gultopu via GitGitGadget, git

Hi Taylor,

I left that one on purpose. I initially thought that
"Documentation/user-manual.txt" was just an outdated, "dead" file that
wasn't being updated anymore and Pro Git 2 was the de-facto user manual
now. Hence, I left it there so that it would provide historical context.

However, after having a look at the history of it, I realize that it is
not a dead file at all. Also a web search for "git user manual" returns
it as the first result, so I understand that it is still very much
relevant.

On the other hand, the document clearly states that the terms "directory
cache" and "cache" have been obsoleted by "index", so there is no source
of confusion there. On the man pages, there was, which was the reason I
felt the need to make this change. I thought that keeping at least one
definition of "directory cache" (where this definition clearly states
that it is an obsolete term for "index") would be helpful.

So what are your thoughts about it? If you think it is better to remove
it, please let me know and I will remove it.

Best

> On Jan 8, 2021, at 1:32 PM, Taylor Blau <me@ttaylorr.com> wrote:
> 
> Hi Utku,
> 
> On Fri, Jan 08, 2021 at 04:54:56PM +0000, Utku Gultopu via GitGitGadget wrote:
>> From: Utku Gultopu <ugultopu@gmail.com>
>> 
>> "directory cache" (or "directory cache index", "cache") are obsolete
>> terms which have been superseded by "index". Keeping them in the
>> documentation may be a source of confusion. This commit replaces
>> them with the current term, "index", on man pages.
> 
> This patch looks good to me. There is another mention of the old-style
> "directory cache" in the user manual (Documentation/user-manual.txt)
> which could probably be removed:
> 
>    Note that in older documentation you may see the index called the
>    "current directory cache" or just the "cache".  It has three important
>    properties:
> 
> Thanks,
> Taylor


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] doc: remove "directory cache" from man pages
  2021-01-08 19:51   ` Utku
@ 2021-01-08 19:52     ` Taylor Blau
  2021-01-10  6:58       ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Taylor Blau @ 2021-01-08 19:52 UTC (permalink / raw)
  To: Utku; +Cc: Taylor Blau, Utku Gultopu via GitGitGadget, git

On Fri, Jan 08, 2021 at 02:51:05PM -0500, Utku wrote:
> On the other hand, the document clearly states that the terms "directory
> cache" and "cache" have been obsoleted by "index", so there is no source
> of confusion there. On the man pages, there was, which was the reason I
> felt the need to make this change. I thought that keeping at least one
> definition of "directory cache" (where this definition clearly states
> that it is an obsolete term for "index") would be helpful.
>
> So what are your thoughts about it? If you think it is better to remove
> it, please let me know and I will remove it.

I think that is a good reason to leave it as-is. Since you hadn't
mentioned it in the patch text, I was wondering whether it was an
omission, or you had intended to leave it that way.

This patch looks good to me as-is.

Thanks,
Taylor

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] doc: remove "directory cache" from man pages
  2021-01-08 19:52     ` Taylor Blau
@ 2021-01-10  6:58       ` Junio C Hamano
  0 siblings, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2021-01-10  6:58 UTC (permalink / raw)
  To: Taylor Blau; +Cc: Utku, Utku Gultopu via GitGitGadget, git

Taylor Blau <me@ttaylorr.com> writes:

> On Fri, Jan 08, 2021 at 02:51:05PM -0500, Utku wrote:
>> On the other hand, the document clearly states that the terms "directory
>> cache" and "cache" have been obsoleted by "index", so there is no source
>> of confusion there. On the man pages, there was, which was the reason I
>> felt the need to make this change. I thought that keeping at least one
>> definition of "directory cache" (where this definition clearly states
>> that it is an obsolete term for "index") would be helpful.
>>
>> So what are your thoughts about it? If you think it is better to remove
>> it, please let me know and I will remove it.
>
> I think that is a good reason to leave it as-is. Since you hadn't
> mentioned it in the patch text, I was wondering whether it was an
> omission, or you had intended to leave it that way.
>
> This patch looks good to me as-is.

Yup, I agree with the reasoning to keep the "older documentation may
say dircache".  Will queue.  Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-10  6:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-08 16:54 [PATCH] doc: remove "directory cache" from man pages Utku Gultopu via GitGitGadget
2021-01-08 18:32 ` Taylor Blau
2021-01-08 19:51   ` Utku
2021-01-08 19:52     ` Taylor Blau
2021-01-10  6:58       ` Junio C Hamano

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).