git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] Modify description file to say what this file is
@ 2009-02-19  7:36 John Tapsell
  2009-02-19 10:11 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: John Tapsell @ 2009-02-19  7:36 UTC (permalink / raw)
  To: Git Mailing List

A lot of people see this message for the first time on the gitweb
interface, where there is no clue as to what 'this file' means.

Signed-off-by: John Tapsell <johnflux@gmail.com>
---
 templates/hooks--update.sample |    5 +++--
 templates/this--description    |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/templates/hooks--update.sample b/templates/hooks--update.sample
index 93c6055..f753d28 100755
--- a/templates/hooks--update.sample
+++ b/templates/hooks--update.sample
@@ -43,10 +43,11 @@ allowdeletetag=$(git config --bool hooks.allowdeletetag)
 
 # check for no description
 projectdesc=$(sed -e '1q' "$GIT_DIR/description")
-if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb." ]; then
+case $projectdesc in "Unnamed repository;"*|'')
 	echo "*** Project description file hasn't been set" >&2
 	exit 1
-fi
+	;;
+esac
 
 # --- Check types
 # if $newrev is 0000...0000, it's a commit to delete a ref.
diff --git a/templates/this--description b/templates/this--description
index c6f25e8..dcde3c5 100644
--- a/templates/this--description
+++ b/templates/this--description
@@ -1 +1 @@
-Unnamed repository; edit this file to name it for gitweb.
+Unnamed repository; edit this file 'description' to name the repository
-- 
1.6.2.rc1.3.g7d31b.dirty

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

* Re: [PATCH 1/6] Modify description file to say what this file is
  2009-02-19  7:36 [PATCH 1/6] Modify description file to say what this file is John Tapsell
@ 2009-02-19 10:11 ` Junio C Hamano
  2009-02-19 10:18   ` John Tapsell
  2009-03-04  7:07   ` John Tapsell
  0 siblings, 2 replies; 6+ messages in thread
From: Junio C Hamano @ 2009-02-19 10:11 UTC (permalink / raw)
  To: John Tapsell; +Cc: Git Mailing List

[PATCH 1/6] Modify description file to say what this file is

Looks good.

[PATCH 2/6] Google has renamed the imap folder

Jeff already pointed out an obvious thinko; I could fix-up locally (just
ask).

[PATCH 3/6] Improve error message for branching an existing branch

The extra sentence is useless noise to annoy users and make them shout
"none of your business!" back to git.

I would probably get this error message "already exists." more from
forgetting to say "-f" in this sequence:

    $ git branch -f pu next
    $ git checkout pu
    $ sh rebuild-pu-script

to rebuild pu on top of updated next, and "did you mean to checkout?"
misses the mark by a kilometer.

[PATCH 4/6] Improve error message for git-filter-branch

Looks good, with Sverre's rewording would be better, which I could locally
squash in.  Needs signoff, which I could locally forge (just ask to fix-up
and forge).

[PATCH 5/6] Change output "error: " to "Error: " etc

Jeff is right, and the patch is wrong.

[PATCH 6/6] Mention to the user that they can reorder commits

The placement of the new message does not feel right, as adding anything
near "If you remove ... WILL BE LOST" will cloud out that message which is
more important.

I think it should come near or perhaps even before Commands, if we were to
add anything here.

But I am afraid that the proposed new message will hurt the clueless users
more than it would help them.

The cheat-sheet at the top is not for learning what the command can do for
the first time.  It is there to remind people (who already have general
idea on what can be done) how exactly the commands are spelled.  If
somebody does not even know that the purpose of rebase-i is to amend and
resequence, he will more likely destroy his history by blindly using the
command without knowing what is going on, than making a lucky guess.

For that reason, a more appropriate line to add, if we were to add
anything, might be:

 #  s, squash = use commit, but meld into previous commit
 #
+# If you do not know what is going on, remove everything and exit the editor!
+#
 # If you remove a line here THAT COMMIT WILL BE LOST.
 # However, if you remove everything, the rebase will be aborted.

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

* Re: [PATCH 1/6] Modify description file to say what this file is
  2009-02-19 10:11 ` Junio C Hamano
@ 2009-02-19 10:18   ` John Tapsell
  2009-03-04  7:07   ` John Tapsell
  1 sibling, 0 replies; 6+ messages in thread
From: John Tapsell @ 2009-02-19 10:18 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Mailing List

2009/2/19 Junio C Hamano <gitster@pobox.com>:
> [PATCH 1/6] Modify description file to say what this file is
>
> Looks good.
>
> [PATCH 2/6] Google has renamed the imap folder
>
> Jeff already pointed out an obvious thinko; I could fix-up locally (just
> ask).
>
> [PATCH 3/6] Improve error message for branching an existing branch
>
> The extra sentence is useless noise to annoy users and make them shout
> "none of your business!" back to git.
>
> I would probably get this error message "already exists." more from
> forgetting to say "-f" in this sequence:
>
>    $ git branch -f pu next
>    $ git checkout pu
>    $ sh rebuild-pu-script
>
> to rebuild pu on top of updated next, and "did you mean to checkout?"
> misses the mark by a kilometer.
>
> [PATCH 4/6] Improve error message for git-filter-branch
>
> Looks good, with Sverre's rewording would be better, which I could locally
> squash in.  Needs signoff, which I could locally forge (just ask to fix-up
> and forge).
>
> [PATCH 5/6] Change output "error: " to "Error: " etc
>
> Jeff is right, and the patch is wrong.
>
> [PATCH 6/6] Mention to the user that they can reorder commits
>
> The placement of the new message does not feel right, as adding anything
> near "If you remove ... WILL BE LOST" will cloud out that message which is
> more important.
>
> I think it should come near or perhaps even before Commands, if we were to
> add anything here.
>
> But I am afraid that the proposed new message will hurt the clueless users
> more than it would help them.
>
> The cheat-sheet at the top is not for learning what the command can do for
> the first time.  It is there to remind people (who already have general
> idea on what can be done) how exactly the commands are spelled.  If
> somebody does not even know that the purpose of rebase-i is to amend and
> resequence, he will more likely destroy his history by blindly using the
> command without knowing what is going on, than making a lucky guess.
>
> For that reason, a more appropriate line to add, if we were to add
> anything, might be:
>
>  #  s, squash = use commit, but meld into previous commit
>  #
> +# If you do not know what is going on, remove everything and exit the editor!
> +#
>  # If you remove a line here THAT COMMIT WILL BE LOST.
>  # However, if you remove everything, the rebase will be aborted.
>
>

Junio,

  Thanks - I like everything you said.  Could you go ahead and commit
the accepted ones, with all the fix ups mentioned?

Thanks!

JohnFlux

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

* Re: [PATCH 1/6] Modify description file to say what this file is
  2009-02-19 10:11 ` Junio C Hamano
  2009-02-19 10:18   ` John Tapsell
@ 2009-03-04  7:07   ` John Tapsell
  2009-03-04 10:00     ` Jeff King
  2009-03-04 10:01     ` Junio C Hamano
  1 sibling, 2 replies; 6+ messages in thread
From: John Tapsell @ 2009-03-04  7:07 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Mailing List

Hi Junio,
  Did you commit my patches?  I don't see them yet in git.git ?

John Tapsell

2009/2/19 Junio C Hamano <gitster@pobox.com>:
> [PATCH 1/6] Modify description file to say what this file is
>
> Looks good.
>
> [PATCH 2/6] Google has renamed the imap folder
>
> Jeff already pointed out an obvious thinko; I could fix-up locally (just
> ask).
>
> [PATCH 3/6] Improve error message for branching an existing branch
>
> The extra sentence is useless noise to annoy users and make them shout
> "none of your business!" back to git.
>
> I would probably get this error message "already exists." more from
> forgetting to say "-f" in this sequence:
>
>    $ git branch -f pu next
>    $ git checkout pu
>    $ sh rebuild-pu-script
>
> to rebuild pu on top of updated next, and "did you mean to checkout?"
> misses the mark by a kilometer.
>
> [PATCH 4/6] Improve error message for git-filter-branch
>
> Looks good, with Sverre's rewording would be better, which I could locally
> squash in.  Needs signoff, which I could locally forge (just ask to fix-up
> and forge).
>
> [PATCH 5/6] Change output "error: " to "Error: " etc
>
> Jeff is right, and the patch is wrong.
>
> [PATCH 6/6] Mention to the user that they can reorder commits
>
> The placement of the new message does not feel right, as adding anything
> near "If you remove ... WILL BE LOST" will cloud out that message which is
> more important.
>
> I think it should come near or perhaps even before Commands, if we were to
> add anything here.
>
> But I am afraid that the proposed new message will hurt the clueless users
> more than it would help them.
>
> The cheat-sheet at the top is not for learning what the command can do for
> the first time.  It is there to remind people (who already have general
> idea on what can be done) how exactly the commands are spelled.  If
> somebody does not even know that the purpose of rebase-i is to amend and
> resequence, he will more likely destroy his history by blindly using the
> command without knowing what is going on, than making a lucky guess.
>
> For that reason, a more appropriate line to add, if we were to add
> anything, might be:
>
>  #  s, squash = use commit, but meld into previous commit
>  #
> +# If you do not know what is going on, remove everything and exit the editor!
> +#
>  # If you remove a line here THAT COMMIT WILL BE LOST.
>  # However, if you remove everything, the rebase will be aborted.
>
>

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

* Re: [PATCH 1/6] Modify description file to say what this file is
  2009-03-04  7:07   ` John Tapsell
@ 2009-03-04 10:00     ` Jeff King
  2009-03-04 10:01     ` Junio C Hamano
  1 sibling, 0 replies; 6+ messages in thread
From: Jeff King @ 2009-03-04 10:00 UTC (permalink / raw)
  To: John Tapsell; +Cc: Junio C Hamano, Git Mailing List

On Wed, Mar 04, 2009 at 07:07:14AM +0000, John Tapsell wrote:

> Hi Junio,
>   Did you commit my patches?  I don't see them yet in git.git ?

Try looking in 'next', which is where new patches cook before going to
master (especially now, as we are right in the middle of release freeze
on master).

  git log --author=John.Tapsell origin/next

-Peff

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

* Re: [PATCH 1/6] Modify description file to say what this file is
  2009-03-04  7:07   ` John Tapsell
  2009-03-04 10:00     ` Jeff King
@ 2009-03-04 10:01     ` Junio C Hamano
  1 sibling, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2009-03-04 10:01 UTC (permalink / raw)
  To: John Tapsell; +Cc: Git Mailing List

John Tapsell <johnflux@gmail.com> writes:

> Hi Junio,
>   Did you commit my patches?  I don't see them yet in git.git ?

Please look for them in the 'next' branch.

Patches that came after -rc1 are at best queued in 'next' for post 1.6.2.
The only exceptions are critical and obvious fixes, and fixes to
regressions introduced since 1.6.1.

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

end of thread, other threads:[~2009-03-04 10:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-19  7:36 [PATCH 1/6] Modify description file to say what this file is John Tapsell
2009-02-19 10:11 ` Junio C Hamano
2009-02-19 10:18   ` John Tapsell
2009-03-04  7:07   ` John Tapsell
2009-03-04 10:00     ` Jeff King
2009-03-04 10:01     ` Junio C Hamano

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).