* Re: [PATCH 08/10] user-manual: add a "counting commits" example
@ 2007-05-14 15:51 Frank Lichtenheld
2007-05-14 16:03 ` J. Bruce Fields
0 siblings, 1 reply; 5+ messages in thread
From: Frank Lichtenheld @ 2007-05-14 15:51 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: Junio C Hamano, git
On Mon, May 14, 2007 at 11:21:27AM -0400, J. Bruce Fields wrote:
> +Suppose you want to know how many commits you've made on "mybranch"
> +since it diverged from "origin":
> +
> +-------------------------------------------------
> +$ git log --pretty=oneline origin..maint | wc -l
> +-------------------------------------------------
Shouldn't that be mybranch instead of maint?
> +Alternatively you may often see this sort of thing done with the
> +lower-level command gitlink:git-rev-list[1], which just lists the SHA1's
> +of all the given commits:
> +
> +-------------------------------------------------
> +$ git rev-list origin..maint | wc -l
> +-------------------------------------------------
Same here.
Gruesse,
--
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 08/10] user-manual: add a "counting commits" example
2007-05-14 15:51 [PATCH 08/10] user-manual: add a "counting commits" example Frank Lichtenheld
@ 2007-05-14 16:03 ` J. Bruce Fields
2007-05-14 16:05 ` [PATCH] user-manual: fix branch names in examples J. Bruce Fields
0 siblings, 1 reply; 5+ messages in thread
From: J. Bruce Fields @ 2007-05-14 16:03 UTC (permalink / raw)
To: Frank Lichtenheld; +Cc: Junio C Hamano, git
On Mon, May 14, 2007 at 05:51:11PM +0200, Frank Lichtenheld wrote:
> On Mon, May 14, 2007 at 11:21:27AM -0400, J. Bruce Fields wrote:
> > +Suppose you want to know how many commits you've made on "mybranch"
> > +since it diverged from "origin":
> > +
> > +-------------------------------------------------
> > +$ git log --pretty=oneline origin..maint | wc -l
> > +-------------------------------------------------
>
> Shouldn't that be mybranch instead of maint?
>
> > +Alternatively you may often see this sort of thing done with the
> > +lower-level command gitlink:git-rev-list[1], which just lists the SHA1's
> > +of all the given commits:
> > +
> > +-------------------------------------------------
> > +$ git rev-list origin..maint | wc -l
> > +-------------------------------------------------
>
> Same here.
Yep, thanks for the sharp eyes.
--b.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] user-manual: fix branch names in examples
2007-05-14 16:03 ` J. Bruce Fields
@ 2007-05-14 16:05 ` J. Bruce Fields
2007-05-14 21:31 ` Junio C Hamano
0 siblings, 1 reply; 5+ messages in thread
From: J. Bruce Fields @ 2007-05-14 16:05 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Frank Lichtenheld, git
Thanks to Frank Lichtenheld for pointing out inconsistent use of branch
names in a couple examples.
Add a little more example output while I'm at it.
At some point actually it might be good for someone to figure out a good
example to use consistently throughout the manual and tutorials; it
might make them a little easier to read.
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
---
Documentation/user-manual.txt | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 9fc2bba..5fb86f2 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -701,7 +701,7 @@ Suppose you want to know how many commits you've made on "mybranch"
since it diverged from "origin":
-------------------------------------------------
-$ git log --pretty=oneline origin..maint | wc -l
+$ git log --pretty=oneline origin..mybranch | wc -l
-------------------------------------------------
Alternatively you may often see this sort of thing done with the
@@ -709,7 +709,7 @@ lower-level command gitlink:git-rev-list[1], which just lists the SHA1's
of all the given commits:
-------------------------------------------------
-$ git rev-list origin..maint | wc -l
+$ git rev-list origin..mybranch | wc -l
-------------------------------------------------
[[checking-for-equal-branches]]
@@ -849,19 +849,23 @@ a07157ac624b2524a059a3414e99f6f44bebc1e7 refs/heads/master
1e87486ae06626c2f31eaa63d26fc0fd646c8af2 refs/heads/tutorial-fixes
-------------------------------------------------
-We can get just the branch-head names, and remove "maint", with
+We can get just the branch-head names, and remove "master", with
the help of the standard utilities cut and grep:
-------------------------------------------------
-$ git show-ref --heads | cut -d' ' -f2 | grep -v '^refs/heads/maint'
+$ git show-ref --heads | cut -d' ' -f2 | grep -v '^refs/heads/master'
+refs/heads/core-tutorial
+refs/heads/maint
+refs/heads/tutorial-2
+refs/heads/tutorial-fixes
-------------------------------------------------
-And then we can ask to see all the commits reachable from maint
+And then we can ask to see all the commits reachable from master
but not from these other heads:
-------------------------------------------------
-$ gitk maint --not $( git show-ref --heads | cut -d' ' -f2 |
- grep -v '^refs/heads/maint' )
+$ gitk master --not $( git show-ref --heads | cut -d' ' -f2 |
+ grep -v '^refs/heads/master' )
-------------------------------------------------
Obviously endless variations are possible; to see all commits
--
1.5.1.4.19.g69e2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] user-manual: fix branch names in examples
2007-05-14 16:05 ` [PATCH] user-manual: fix branch names in examples J. Bruce Fields
@ 2007-05-14 21:31 ` Junio C Hamano
2007-05-14 21:38 ` J. Bruce Fields
0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-05-14 21:31 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: Frank Lichtenheld, git
"J. Bruce Fields" <bfields@fieldses.org> writes:
> Thanks to Frank Lichtenheld for pointing out inconsistent use of branch
> names in a couple examples.
>
> Add a little more example output while I'm at it.
> ...
Thanks everybody for participating in these fixups.
Bruce, how heavy is your workload these days? Would you mind if
I ask you to collect the list comments, have me wait for a few
days until the discussions and updates settle down and give me
"Ok, all ready to be pulled" after that?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] user-manual: fix branch names in examples
2007-05-14 21:31 ` Junio C Hamano
@ 2007-05-14 21:38 ` J. Bruce Fields
0 siblings, 0 replies; 5+ messages in thread
From: J. Bruce Fields @ 2007-05-14 21:38 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Frank Lichtenheld, git
On Mon, May 14, 2007 at 02:31:20PM -0700, Junio C Hamano wrote:
> Thanks everybody for participating in these fixups.
>
> Bruce, how heavy is your workload these days?
Probably lighter than yours.
> Would you mind if I ask you to collect the list comments, have me wait
> for a few days until the discussions and updates settle down and give
> me "Ok, all ready to be pulled" after that?
Yep, that should be no problem.
--b.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-14 21:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-14 15:51 [PATCH 08/10] user-manual: add a "counting commits" example Frank Lichtenheld
2007-05-14 16:03 ` J. Bruce Fields
2007-05-14 16:05 ` [PATCH] user-manual: fix branch names in examples J. Bruce Fields
2007-05-14 21:31 ` Junio C Hamano
2007-05-14 21:38 ` J. Bruce Fields
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).