git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] git-pack-objects.txt: fix grammatical errors
@ 2011-03-30  9:00 Stephen Boyd
  2011-04-02 16:03 ` Nicolas Pitre
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2011-03-30  9:00 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
---

This paragraph might need even more work. Paint away!

 Documentation/git-pack-objects.txt |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
index a51071e..442018b 100644
--- a/Documentation/git-pack-objects.txt
+++ b/Documentation/git-pack-objects.txt
@@ -190,9 +190,9 @@ self-contained. Use `git index-pack --fix-thin`
 (see linkgit:git-index-pack[1]) to restore the self-contained property.
 
 --delta-base-offset::
-	A packed archive can express base object of a delta as
-	either 20-byte object name or as an offset in the
-	stream, but older version of git does not understand the
+	A packed archive can express the base object of a delta as
+	either a 20-byte object name or as an offset in the
+	stream, but older versions of git don't understand the
 	latter.  By default, 'git pack-objects' only uses the
 	former format for better compatibility.  This option
 	allows the command to use the latter format for
-- 
1.7.4.2.422.g537d99

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

* Re: [PATCH] git-pack-objects.txt: fix grammatical errors
  2011-03-30  9:00 [PATCH] git-pack-objects.txt: fix grammatical errors Stephen Boyd
@ 2011-04-02 16:03 ` Nicolas Pitre
  2011-04-02 18:03   ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Pitre @ 2011-04-02 16:03 UTC (permalink / raw)
  To: Stephen Boyd; +Cc: git, Junio C Hamano

On Wed, 30 Mar 2011, Stephen Boyd wrote:

> Signed-off-by: Stephen Boyd <bebarino@gmail.com>
> ---
> 
> This paragraph might need even more work. Paint away!
> 
>  Documentation/git-pack-objects.txt |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
> index a51071e..442018b 100644
> --- a/Documentation/git-pack-objects.txt
> +++ b/Documentation/git-pack-objects.txt
> @@ -190,9 +190,9 @@ self-contained. Use `git index-pack --fix-thin`
>  (see linkgit:git-index-pack[1]) to restore the self-contained property.
>  
>  --delta-base-offset::
> -	A packed archive can express base object of a delta as
> -	either 20-byte object name or as an offset in the
> -	stream, but older version of git does not understand the
> +	A packed archive can express the base object of a delta as
> +	either a 20-byte object name or as an offset in the
> +	stream, but older versions of git don't understand the
>  	latter.  By default, 'git pack-objects' only uses the
>  	former format for better compatibility.  This option
>  	allows the command to use the latter format for

This is misleading and not even true anymore if not using pack-objects.  
Most people are using either 'git repack' or even 'git gc', and the 
default is to use this parameter since commit 22c79eab.


Nicolas

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

* Re: [PATCH] git-pack-objects.txt: fix grammatical errors
  2011-04-02 16:03 ` Nicolas Pitre
@ 2011-04-02 18:03   ` Junio C Hamano
  2011-04-02 21:16     ` Nicolas Pitre
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2011-04-02 18:03 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: Stephen Boyd, git

Nicolas Pitre <nico@fluxnic.net> writes:

>> diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
>> index a51071e..442018b 100644
>> --- a/Documentation/git-pack-objects.txt
>> +++ b/Documentation/git-pack-objects.txt
>> @@ -190,9 +190,9 @@ self-contained. Use `git index-pack --fix-thin`
>>  (see linkgit:git-index-pack[1]) to restore the self-contained property.
>>  
>>  --delta-base-offset::
>> +	A packed archive can express the base object of a delta as
>> +	either a 20-byte object name or as an offset in the
>> +	stream, but older versions of git don't understand the
>>  	latter.  By default, 'git pack-objects' only uses the
>>  	former format for better compatibility.  This option
>>  	allows the command to use the latter format for
>
> This is misleading and not even true anymore if not using pack-objects.  
> Most people are using either 'git repack' or even 'git gc', and the 
> default is to use this parameter since commit 22c79eab.

This page is on the pack-objects plumbing, and in that context there is
nothing misleading nor false about it.

We may however want to do something like the attached to help people who
might wonder how to pass this option through the Porcelain they use.  In
the longer term, it probably makes sense to make the option default at a
version bump, perhaps at the 1.8.0 boundary.


 Documentation/git-pack-objects.txt |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
index a9c373c..96684bc 100644
--- a/Documentation/git-pack-objects.txt
+++ b/Documentation/git-pack-objects.txt
@@ -192,13 +192,18 @@ self-contained. Use `git index-pack --fix-thin`
 --delta-base-offset::
 	A packed archive can express the base object of a delta as
 	either a 20-byte object name or as an offset in the
-	stream, but older versions of git don't understand the
+	stream, but ancient versions of git don't understand the
 	latter.  By default, 'git pack-objects' only uses the
 	former format for better compatibility.  This option
 	allows the command to use the latter format for
 	compactness.  Depending on the average delta chain
 	length, this option typically shrinks the resulting
 	packfile by 3-5 per-cent.
++
+Note: Porcelain commands such as `git gc` (see linkgit:git-gc[1]),
+`git repack` (see linkgit:git-repack[1]) pass this option by default
+in modern git when they put objects in your repository into pack files.
+So does `git bundle` (see linkgit:git-bundle[1]) when it creates a bundle.
 
 --threads=<n>::
 	Specifies the number of threads to spawn when searching for best

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

* Re: [PATCH] git-pack-objects.txt: fix grammatical errors
  2011-04-02 18:03   ` Junio C Hamano
@ 2011-04-02 21:16     ` Nicolas Pitre
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Pitre @ 2011-04-02 21:16 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Stephen Boyd, git

On Sat, 2 Apr 2011, Junio C Hamano wrote:

> Nicolas Pitre <nico@fluxnic.net> writes:
> 
> >> diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
> >> index a51071e..442018b 100644
> >> --- a/Documentation/git-pack-objects.txt
> >> +++ b/Documentation/git-pack-objects.txt
> >> @@ -190,9 +190,9 @@ self-contained. Use `git index-pack --fix-thin`
> >>  (see linkgit:git-index-pack[1]) to restore the self-contained property.
> >>  
> >>  --delta-base-offset::
> >> +	A packed archive can express the base object of a delta as
> >> +	either a 20-byte object name or as an offset in the
> >> +	stream, but older versions of git don't understand the
> >>  	latter.  By default, 'git pack-objects' only uses the
> >>  	former format for better compatibility.  This option
> >>  	allows the command to use the latter format for
> >
> > This is misleading and not even true anymore if not using pack-objects.  
> > Most people are using either 'git repack' or even 'git gc', and the 
> > default is to use this parameter since commit 22c79eab.
> 
> This page is on the pack-objects plumbing, and in that context there is
> nothing misleading nor false about it.

True.  But...

> We may however want to do something like the attached to help people who
> might wonder how to pass this option through the Porcelain they use.

That's the kind of precision I was meaning.

> the longer term, it probably makes sense to make the option default at a
> version bump, perhaps at the 1.8.0 boundary.

Agreed.


Nicolas

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

end of thread, other threads:[~2011-04-02 21:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-30  9:00 [PATCH] git-pack-objects.txt: fix grammatical errors Stephen Boyd
2011-04-02 16:03 ` Nicolas Pitre
2011-04-02 18:03   ` Junio C Hamano
2011-04-02 21:16     ` Nicolas Pitre

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).