Skip to contentSkip to conversation

README: Fix spelling

PATCH In review Jonas Fonseca 4 participants 8 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 README: Fix spelling

---
README | 11 +++++------

 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/README b/README
index 5bfe3ee..9e291da 100644
--- a/README
+++ b/README
@@ -22,7 +22,7 @@ version control of patches (reordering of patches is not
version-controlled at all). But there are several disadvantages -
for one, these tools (especially StGIT) do not actually fit well
with plain Git at all: it is basically impossible to take advantage
-of the index efectively when using StGIT. But more importantly, +of the index effectively when using StGIT. But more importantly,
these tools horribly fail in the face of distributed environment.

TopGit has been designed around three main tenets:
@@ -45,7 +45,7 @@ them.

As mentioned above, the main intended use-case for TopGit is tracking third-party patches, where each patch is effectively a single topic
-branch. In order to flexibly accomodate even complex scenarios when +branch. In order to flexibly accommodate even complex scenarios when
you track many patches where many are independent but some depend
on others, TopGit ignores the ancient Quilt heritage of patch series
and instead allows the patches to freely form graphs (DAGs just like
@@ -222,7 +222,7 @@ tg create

After tg create, you should insert the patch description
to the '.topmsg' file, which will already contain some
- pre-filled bits. You can set topgit.to, topgit.cc and topgit.bcc
+ prefilled bits. You can set topgit.to, topgit.cc and topgit.bcc
configuration variables in order to have tg create
add these headers with given default values to '.topmsg'.

@@ -350,7 +350,7 @@ tg export
in the cleaned up history (corresponding basically exactly
to tg patch output for the topic branch).

- The command has two posible outputs now - either a Git branch
+ The command has two possible outputs now - either a Git branch
with the collapsed history, or a quilt series in new directory.

In case of producing collapsed history in new branch,
@@ -455,7 +455,6 @@ tg update

TODO: tg update -a for updating all topic branches

-TODO: tg depend for adding/removing dependencies smoothly
TODO: tg rename


@@ -485,7 +484,7 @@ whatever Cc headers you choose or the post-three-dashes message.
When mailing out your patch, basically only few extra headers
mail headers are inserted and the patch itself is appended.
Thus, as your patches evolve, you can record nuances like whether
-the paricular patch should have To-list/Cc-maintainer or vice +the particular patch should have To-list/Cc-maintainer or vice
versa and similar nuances, if your project is into that.
From is prefilled from your current GIT_AUTHOR_IDENT, other headers
can be prefilled from various optional topgit.* config options.

Signature · 1 line
tg: (f17218e..) jf/readme-update (depends on: master)
#1 lore raw

PATCH 1/1 tg patch: disable pager and colors for git-diff

When output is not redirected to a file, git brings up the pager for only the diff, which can be confusing, so disable with --no-pager. git-diff is a porcelain command and thus subject to color options. Use --no-color, to avoid the patch being corrupted with terminal escape characters when color.diff=always.

---
 tg-patch.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Jonas Fonseca <[email protected]> wrote Thu, Nov 20, 2008:

Quoted 10 lines

---
README | 11 +++++------

 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/README b/README
index 5bfe3ee..9e291da 100644
--- a/README
+++ b/README

I hope this demonstrates the point of this patch. ;)

tg-patch.sh +1 -1
index 97338ab..c2f1b56 100644
@@ -34,7 +34,7 @@ git diff-tree --name-only "$base_rev" "$name" |
 	fgrep -vx ".topdeps" |
 	fgrep -vx ".topmsg" >"$git_is_stupid" || : # fgrep likes to fail randomly?
 if [ -s "$git_is_stupid" ]; then
-	cat "$git_is_stupid" | xargs git diff --patch-with-stat "$base_rev" "$name" --
+	cat "$git_is_stupid" | xargs git --no-pager diff --no-color --patch-with-stat "$base_rev" "$name" --
 else
 	echo "No changes."
 fi
Signature · 4 lines
tg: (f17218e..) jf/patch-no-pager-and-color (depends on: master)

-- 
Jonas Fonseca
#2 lore raw

Re: [TopGit PATCH] tg patch: disable pager and colors for git-diff

Quoted 7 lines · Jonas Fonseca

When output is not redirected to a file, git brings up the pager for only the diff, which can be confusing, so disable with --no-pager. git-diff is a porcelain command and thus subject to color options. Use --no-color, to avoid the patch being corrupted with terminal escape characters when color.diff=always.

I still don't understand how did that color thing happen - shouldn't git diff avoid spewing out colors when the output is not a tty? And when it is, I want the colors myself, too.

Good point with the --no-pager, but in that case, tg patch itself should by default invoke the pager, since it really is very desirable.

Signature · 3 lines
				Petr "Pasky" Baudis
People who take cold baths never have rheumatism, but they have
cold baths.
#3 lore raw

Re: [TopGit PATCH] tg patch: disable pager and colors for git-diff

Quoted 7 lines · Petr Baudis
Quoted 6 lines · Jonas Fonseca

When output is not redirected to a file, git brings up the pager for only the diff, which can be confusing, so disable with --no-pager. git-diff is a porcelain command and thus subject to color options. Use --no-color, to avoid the patch being corrupted with terminal escape characters when color.diff=always.

Quoted 5 lines
Quoted 1 line

I still don't understand how did that color thing happen - shouldn't git diff avoid spewing out colors when the output is not a tty? And when it is, I want the colors myself, too.

As I wrote in the commit message, git diff always spews out colors with color.diff=always. This was what I for experimental reasons had in my .git/config (and forgotten all about) before sending the README update patch. Topgit could check the git color configuration but that seems more hacky.

Quoted 2 lines

Good point with the --no-pager, but in that case, tg patch itself should by default invoke the pager, since it really is very desirable.

Yes, probably.

Signature · 1 line
Jonas Fonseca
#4 lore raw

Re: [TopGit PATCH] tg patch: disable pager and colors for git-diff

Quoted 14 lines · Jonas Fonseca
Quoted 7 lines · Petr Baudis
Quoted 6 lines · Jonas Fonseca

When output is not redirected to a file, git brings up the pager for only the diff, which can be confusing, so disable with --no-pager. git-diff is a porcelain command and thus subject to color options. Use --no-color, to avoid the patch being corrupted with terminal escape characters when color.diff=always.

Quoted 5 lines
Quoted 1 line

I still don't understand how did that color thing happen - shouldn't git diff avoid spewing out colors when the output is not a tty? And when it is, I want the colors myself, too.

Quoted 5 lines

As I wrote in the commit message, git diff always spews out colors with color.diff=always. This was what I for experimental reasons had in my .git/config (and forgotten all about) before sending the README update patch. Topgit could check the git color configuration but that seems more hacky.

This shows just that color.diff=always is asking for trouble. ;-) I think we shouldn't try to outsmart the user if they _force_ that they really always want the colors.

Signature · 3 lines
				Petr "Pasky" Baudis
People who take cold baths never have rheumatism, but they have
cold baths.
#5 lore raw
In reply to Jonas Fonseca

Oops sorry about this one!!! :-/

Quoted 66 lines · Jonas Fonseca

---
README [m | 11 [32m+++++ [m [31m------ [m

 1 files changed, 5 insertions(+), 6 deletions(-) [m

[1mdiff --git a/README b/README [m
[1mindex 5bfe3ee..9e291da 100644 [m
[1m--- a/README [m
[1m+++ b/README [m
[36m@@ -22,7 +22,7 @@ version control of patches (reordering of patches is not [m version-controlled at all). But there are several disadvantages - [m
for one, these tools (especially StGIT) do not actually fit well [m
with plain Git at all: it is basically impossible to take advantage [m [31m-of the index efectively when using StGIT. But more importantly, [m [32m+ [m [32mof the index effectively when using StGIT. But more importantly, [m these tools horribly fail in the face of distributed environment. [m
[m
TopGit has been designed around three main tenets: [m
[36m@@ -45,7 +45,7 @@ them. [m
[m
As mentioned above, the main intended use-case for TopGit is tracking [m third-party patches, where each patch is effectively a single topic [m [31m-branch. In order to flexibly accomodate even complex scenarios when [m [32m+ [m [32mbranch. In order to flexibly accommodate even complex scenarios when [m you track many patches where many are independent but some depend [m
on others, TopGit ignores the ancient Quilt heritage of patch series [m
and instead allows the patches to freely form graphs (DAGs just like [m [36m@@ -222,7 +222,7 @@ tg create [m
[m
After tg create, you should insert the patch description [m
to the '.topmsg' file, which will already contain some [m
[31m- pre-filled bits. You can set topgit.to, topgit.cc and topgit.bcc [m
[32m+ [m [32mprefilled bits. You can set topgit.to, topgit.cc and topgit.bcc [m
configuration variables in order to have tg create [m
add these headers with given default values to '.topmsg'. [m
[m
[36m@@ -350,7 +350,7 @@ tg export [m
in the cleaned up history (corresponding basically exactly [m
to tg patch output for the topic branch). [m
[m
[31m- The command has two posible outputs now - either a Git branch [m
[32m+ [m [32mThe command has two possible outputs now - either a Git branch [m
with the collapsed history, or a quilt series in new directory. [m
[m
In case of producing collapsed history in new branch, [m
[36m@@ -455,7 +455,6 @@ tg update [m
[m
TODO: tg update -a for updating all topic branches [m
[m
[31m-TODO: tg depend for adding/removing dependencies smoothly [m
TODO: tg rename [m
[m
[m
[36m@@ -485,7 +484,7 @@ whatever Cc headers you choose or the post-three-dashes message. [m When mailing out your patch, basically only few extra headers [m
mail headers are inserted and the patch itself is appended. [m
Thus, as your patches evolve, you can record nuances like whether [m [31m-the paricular patch should have To-list/Cc-maintainer or vice [m
[32m+ [m [32mthe particular patch should have To-list/Cc-maintainer or vice [m versa and similar nuances, if your project is into that. [m
From is prefilled from your current GIT_AUTHOR_IDENT, other headers [m
can be prefilled from various optional topgit.* config options. [m
--
tg: (f17218e..) jf/readme-update (depends on: master)

Signature · 1 line
Jonas Fonseca
#6 lore raw

also sprach Jonas Fonseca <[email protected]> [2008.11.20.1452 +0100]:

Quoted 1 line

Oops sorry about this one!!! :-/

What about it? The patch seems perfectly alright. Only the quoted version is broken, which I think is your fault.

Should I apply the README patch?

Signature · 7 lines
 .''`.   martin f. krafft <[email protected]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
 
a Hooloovoo is a superintelligent shade of the color blue.
            -- douglas adams, "the hitchhiker's guide to the galaxy"
#7 lore raw
Quoted 5 lines · martin f krafft

also sprach Jonas Fonseca <[email protected]> [2008.11.20.1452 +0100]:

Quoted 1 line

Oops sorry about this one!!! :-/

What about it? The patch seems perfectly alright. Only the quoted version is broken, which I think is your fault.

Well, it looks very broken in Gmail ...

Quoted 1 line

Should I apply the README patch?

Yes, if you can salvage it. Else it is also available in branch jf/readme-update at

git://repo.or.cz/topgit/fonseca.git

Signature · 1 line
Jonas Fonseca