git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix bad usage of mkpath in builtin-branch.sh

From
Petr Baudis <pasky@suse.cz>
Date
Oct 25, 2006, 22:43 UTC
Message-ID
<20061025224313.GM20017@pasky.or.cz>
In-Reply-To
<7vslhddmtu.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Wed, Oct 25, 2006 at 06:46:37AM CEST, I got a letter where Junio C Hamano <junkio@cox.net> said that...

Show 26 quoted lines
> Junio C Hamano <junkio@cox.net> writes:
> 
> > Petr Baudis <pasky@suse.cz> writes:
> >
> >> I have made my fair share of inadverent mode changes as well (I don't
> >> even know how that *happenned*), and I don't seem to be alone; since
> >> this is something you are doing only rarely anyway, perhaps we should
> >> try to make mode changes more visible?
> >
> > Well we already do and that's how I noticed.
> 
> Ah, sorry, I think I misunderstood you.
> Did you mean something like this?
> 
> diff --git a/git-commit.sh b/git-commit.sh
> index 5b1cf85..8bae734 100755
> --- a/git-commit.sh
> +++ b/git-commit.sh
> @@ -629,4 +629,7 @@ if test -x "$GIT_DIR"/hooks/post-commit
>  then
>  	"$GIT_DIR"/hooks/post-commit
>  fi
> +
> +test "$ret" = 0 && git-diff-tree --summary --root --no-commit-id HEAD
> +
>  exit "$ret"

Yes, this might be a good idea, although after the commit is perhaps too late.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 7 in “Fix bad usage of mkpath in builtin-branch.sh”
  1. Fix bad usage of mkpath in builtin-branch.shLars Hjemli, Oct 24, 2006
  2. Junio C HamanoOct 24, 2006
  3. Petr BaudisOct 24, 2006
  4. Junio C HamanoOct 25, 2006
  5. Junio C HamanoOct 25, 2006
  6. Petr BaudisOct 25, 2006
  7. Junio C HamanoOct 25, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.