Skip to contentSkip to conversation

doc/technical: remove outdated MIDX default note

PATCH In review Eric Wong 4 participants 9 messages Sep 22, 2021 – Sep 25, 2021 Documentation

lore
Share & tools
lore

Eric Wong

author
#0 lore raw

PATCH 1/1 doc/technical: remove outdated MIDX default note

Multi-pack-index files are used by default since commit 18e449f86b74bab35b150549c8342d252fe7ae00, so the outdated note was misleading.

---
 Documentation/technical/multi-pack-index.txt | 2 --
 1 file changed, 2 deletions(-)
Documentation/technical/multi-pack-index.txt +0 -2
index 1a73c3ee20..2038fb7995 100644
@@ -36,8 +36,6 @@ Design Details
   directory of an alternate. It refers only to packfiles in that
   same directory.
 
-- The core.multiPackIndex config setting must be on to consume MIDX files.
-
 - The file format includes parameters for the object ID hash
   function, so a future change of hash algorithm does not require
   a change in format.
#1 lore raw
Quoted 3 lines · Eric Wong

Multi-pack-index files are used by default since commit 18e449f86b74bab35b150549c8342d252fe7ae00, so the outdated note was misleading.

You are correct that the note is misleading, but it is still correct.

A user can _disable_ reading MIDX files by setting core.multiPackIndex to false. If this was in the user-facing docs, not the technical docs, then I might push back on trying to make that distinction.

Quoted 2 lines

-- The core.multiPackIndex config setting must be on to consume MIDX files. -

As it is, this deletion is fine.

A nit on your commit message: format commit references like this:

18e449f86 (midx: enable core.multiPackIndex by default, 2020-09-25)

Thanks,
-Stolee

#2 lore raw
Quoted 10 lines · Derrick Stolee
Quoted 3 lines · Eric Wong

Multi-pack-index files are used by default since commit 18e449f86b74bab35b150549c8342d252fe7ae00, so the outdated note was misleading.

You are correct that the note is misleading, but it is still correct.

A user can _disable_ reading MIDX files by setting core.multiPackIndex to false. If this was in the user-facing docs, not the technical docs, then I might push back on trying to make that distinction.

It may present a fuller picture to instead say:

The core.multiPackIndex config setting must be on (which is the default) to consume MIDX files. Setting it to false prevents Git from reading a MIDX file, even if one exists.

Thanks,
Taylor

author
#3 lore raw

PATCH v2 1/1 doc/technical: update note about core.multiPackIndex

Quoted 12 lines · Taylor Blau
Quoted 10 lines · Derrick Stolee
Quoted 3 lines · Eric Wong

Multi-pack-index files are used by default since commit 18e449f86b74bab35b150549c8342d252fe7ae00, so the outdated note was misleading.

You are correct that the note is misleading, but it is still correct.

A user can _disable_ reading MIDX files by setting core.multiPackIndex to false. If this was in the user-facing docs, not the technical docs, then I might push back on trying to make that distinction.

Quoted 5 lines

It may present a fuller picture to instead say:

The core.multiPackIndex config setting must be on (which is the default) to consume MIDX files. Setting it to false prevents Git from reading a MIDX file, even if one exists.

Ah, thanks, I'll just use your text.

---------8<----------
Subject: [PATCH] doc/technical: update note about core.multiPackIndex

MIDX files are used by default since commit d0fa539bc569 (doc/technical: remove outdated MIDX default note, 2021-09-22)

---
 Documentation/technical/multi-pack-index.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/technical/multi-pack-index.txt +3 -1
index 1a73c3ee203e..86f40f24909a 100644
@@ -36,7 +36,9 @@ Design Details
   directory of an alternate. It refers only to packfiles in that
   same directory.
 
-- The core.multiPackIndex config setting must be on to consume MIDX files.
+- The core.multiPackIndex config setting must be on (which is the
+  default) to consume MIDX files.  Setting it to `false` prevents
+  Git from reading a MIDX file, even if one exists.
 
 - The file format includes parameters for the object ID hash
   function, so a future change of hash algorithm does not require
#4 lore raw

Re: [PATCH v2] doc/technical: update note about core.multiPackIndex

Quoted 8 lines · Eric Wong

Subject: [PATCH] doc/technical: update note about core.multiPackIndex

MIDX files are used by default since commit d0fa539bc569 (doc/technical: remove outdated MIDX default note, 2021-09-22)

---

Thanks; this version looks good to me.

Thanks,
Taylor

author
#5 lore raw

PATCH v3 1/1 doc/technical: update note about core.multiPackIndex

In reply to Eric Wong

MIDX files are used by default since commit 18e449f86b74 (midx: enable core.multiPackIndex by default, 2020-09-25)

---
v3: I cited the wrong commit in the commit message of v2 :x

 Documentation/technical/multi-pack-index.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/technical/multi-pack-index.txt +3 -1
index 1a73c3ee203e..86f40f24909a 100644
@@ -36,7 +36,9 @@ Design Details
   directory of an alternate. It refers only to packfiles in that
   same directory.
 
-- The core.multiPackIndex config setting must be on to consume MIDX files.
+- The core.multiPackIndex config setting must be on (which is the
+  default) to consume MIDX files.  Setting it to `false` prevents
+  Git from reading a MIDX file, even if one exists.
 
 - The file format includes parameters for the object ID hash
   function, so a future change of hash algorithm does not require
#6 lore raw

Re: [PATCH v3] doc/technical: update note about core.multiPackIndex

Quoted 7 lines · Eric Wong

MIDX files are used by default since commit 18e449f86b74 (midx: enable core.multiPackIndex by default, 2020-09-25)

---
v3: I cited the wrong commit in the commit message of v2 :x

Good catch.

Quoted 8 lines
 Documentation/technical/multi-pack-index.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/technical/multi-pack-index.txt +0 -0
index 1a73c3ee203e..86f40f24909a 100644

Documentation/technical/multi-pack-index.txt Design Details · line 44

Quoted 10 lines
Documentation/technical/multi-pack-index.txt +3 -1
@@ -36,7 +36,9 @@ Design Details
   directory of an alternate. It refers only to packfiles in that
   same directory.
 
-- The core.multiPackIndex config setting must be on to consume MIDX files.
+- The core.multiPackIndex config setting must be on (which is the
+  default) to consume MIDX files.  Setting it to `false` prevents
+  Git from reading a MIDX file, even if one exists.
 
 - The file format includes parameters for the object ID hash
   function, so a future change of hash algorithm does not require

This looks good to me, too!

Thanks,
-Stolee

#7 lore raw
In reply to Taylor Blau
Quoted 12 lines · Taylor Blau
Quoted 10 lines · Derrick Stolee
Quoted 3 lines · Eric Wong

Multi-pack-index files are used by default since commit 18e449f86b74bab35b150549c8342d252fe7ae00, so the outdated note was misleading.

You are correct that the note is misleading, but it is still correct.

A user can _disable_ reading MIDX files by setting core.multiPackIndex to false. If this was in the user-facing docs, not the technical docs, then I might push back on trying to make that distinction.

Quoted 5 lines

It may present a fuller picture to instead say:

The core.multiPackIndex config setting must be on (which is the default) to consume MIDX files. Setting it to false prevents Git from reading a MIDX file, even if one exists.

Do you want to replace the one-line sentence with that paragraph, instead of removing it, in a replacement patch?

#8 lore raw
Quoted 14 lines · Junio C Hamano
Quoted 12 lines · Taylor Blau
Quoted 10 lines · Derrick Stolee
Quoted 3 lines · Eric Wong

Multi-pack-index files are used by default since commit 18e449f86b74bab35b150549c8342d252fe7ae00, so the outdated note was misleading.

You are correct that the note is misleading, but it is still correct.

A user can _disable_ reading MIDX files by setting core.multiPackIndex to false. If this was in the user-facing docs, not the technical docs, then I might push back on trying to make that distinction.

Quoted 8 lines
Quoted 5 lines

It may present a fuller picture to instead say:

The core.multiPackIndex config setting must be on (which is the default) to consume MIDX files. Setting it to false prevents Git from reading a MIDX file, even if one exists.

Do you want to replace the one-line sentence with that paragraph, instead of removing it, in a replacement patch?

That's what I was hoping for, and Eric did that here:

    https://lore.kernel.org/git/20210923201252.GA25980@dcvr/

Thanks,
Taylor