threads / discuss / 4403

Fix typo in tutorial-2.txt

Subject: Fix typo in tutorial-2.txt

## tl;dr

5 messages between Jun 5, 2006 and Jun 5, 2006.

replies: 4people: 3as markdown or json

Linus Torvalds· Jun 5, 2006, 19:47 UTC · lore
This should be obvious enough.

I didn't actually _test_ the tutorial, but if the old command worked, something is really wrong!

Signed-off-by: Linus "Duh!" Torvalds <torvalds@osdl.org>
---
 Documentation/tutorial-2.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/tutorial-2.txt b/Documentation/tutorial-2.txt
index 82c6922..894ca5e 100644
--- a/Documentation/tutorial-2.txt
+++ b/Documentation/tutorial-2.txt
@@ -136,7 +136,7 @@ The "tree" object here refers to the new
 ------------------------------------------------
 $ git ls-tree d0492b36
 100644 blob a0423896973644771497bdc03eb99d5281615b51    file.txt
-$ git cat-file commit a0423896
+$ git cat-file blob a0423896
 hello world!
 ------------------------------------------------
 
Johannes Schindelin· Jun 5, 2006, 23:15 UTC · re: Linus Torvalds · lore

Re: Fix typo in tutorial-2.txt

Hi,
On Mon, 5 Jun 2006, Linus Torvalds wrote:
> I didn't actually _test_ the tutorial, but if the old command worked, 
> something is really wrong!

Maybe some new gitter wants to get dirty hands? We used to have a test which just replayed the commands in the tutorial, to make sure that new users would not hit a regression or a syntax change...

Ciao, Dscho

J. Bruce Fields· Jun 5, 2006, 23:44 UTC · re: Johannes Schindelin · lore

Re: Fix typo in tutorial-2.txt

On Tue, Jun 06, 2006 at 01:15:32AM +0200, Johannes Schindelin wrote:
Show 8 quoted lines
> On Mon, 5 Jun 2006, Linus Torvalds wrote:
> 
> > I didn't actually _test_ the tutorial, but if the old command worked, 
> > something is really wrong!
> 
> Maybe some new gitter wants to get dirty hands? We used to have a test 
> which just replayed the commands in the tutorial, to make sure that new 
> users would not hit a regression or a syntax change...
Might be a nice idea.

But don't commit SHA1's, e.g., depend on times, authors, etc., that we can't count on being the same? So you'd have to be clever to deal with stuff like

	git cat-file commit a344bd52

Also, note that I didn't even attempt to keep a consistent scenario throughout the first tutorial.

--b.
Linus Torvalds· Jun 5, 2006, 23:58 UTC · re: J. Bruce Fields · lore

Re: Fix typo in tutorial-2.txt

On Mon, 5 Jun 2006, J. Bruce Fields wrote:
> 
> But don't commit SHA1's, e.g., depend on times, authors, etc., that we
> can't count on being the same?
You can set all these by hand with the
	GIT_{AUTHOR,COMMITTER}_{NAME,EMAIL,DATE}

variables. In fact, the test script library already does that for authors (although not for dates, I think) to get consistent answers.

			Linus
J. Bruce Fields· Jun 5, 2006, 23:38 UTC · re: Linus Torvalds · lore

Re: Fix typo in tutorial-2.txt

On Mon, Jun 05, 2006 at 12:47:49PM -0700, Linus Torvalds wrote:
Show 5 quoted lines
> 
> This should be obvious enough.
> 
> I didn't actually _test_ the tutorial, but if the old command worked, 
> something is really wrong!
Aie, sorry, thanks.--b.

← back to recent threads