git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Mark gitk script executable
@ 2011-01-07  1:14 Anders Kaseorg
  2011-01-07  2:34 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Anders Kaseorg @ 2011-01-07  1:14 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

The executable bit on gitk-git/gitk was lost (accidentally it seems) by 
commit 62ba5143ec2ab9d4083669b1b1679355e7639cd5.  Put it back, so that 
gitk can be run directly from a git.git checkout.

Note that the script is already executable in gitk.git, just not in 
git.git.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
---
 0 files changed, 0 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 gitk-git/gitk

diff --git a/gitk-git/gitk b/gitk-git/gitk
old mode 100644
new mode 100755
-- 
1.7.4-rc0

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

* Re: [PATCH] Mark gitk script executable
  2011-01-07  1:14 [PATCH] Mark gitk script executable Anders Kaseorg
@ 2011-01-07  2:34 ` Junio C Hamano
  2011-01-07  3:01   ` Jonathan Nieder
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2011-01-07  2:34 UTC (permalink / raw)
  To: Anders Kaseorg; +Cc: git

Anders Kaseorg <andersk@MIT.EDU> writes:

> The executable bit on gitk-git/gitk was lost (accidentally it seems) by 
> commit 62ba5143ec2ab9d4083669b1b1679355e7639cd5.  Put it back, so that 
> gitk can be run directly from a git.git checkout.
>
> Note that the script is already executable in gitk.git, just not in 
> git.git.

It did not lose the bit by accident but 62ba5143 pretty much was a
deliberate fix.  "gitk" is a source file, and its build product,
gitk-wish, is what is eventually installed with executable bit on.

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

* Re: [PATCH] Mark gitk script executable
  2011-01-07  2:34 ` Junio C Hamano
@ 2011-01-07  3:01   ` Jonathan Nieder
  2011-01-07 19:29     ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Jonathan Nieder @ 2011-01-07  3:01 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Anders Kaseorg, git, Paul Mackerras

Junio C Hamano wrote:
> Anders Kaseorg <andersk@MIT.EDU> writes:

>> The executable bit on gitk-git/gitk was lost (accidentally it seems) by 
>> commit 62ba5143ec2ab9d4083669b1b1679355e7639cd5.  Put it back, so that 
>> gitk can be run directly from a git.git checkout.
>>
>> Note that the script is already executable in gitk.git, just not in 
>> git.git.
>
> It did not lose the bit by accident but 62ba5143 pretty much was a
> deliberate fix.  "gitk" is a source file, and its build product,
> gitk-wish, is what is eventually installed with executable bit on.

How does this case differ from other executable source files like
git-am.sh?

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

* Re: [PATCH] Mark gitk script executable
  2011-01-07  3:01   ` Jonathan Nieder
@ 2011-01-07 19:29     ` Junio C Hamano
  2011-01-07 20:35       ` Anders Kaseorg
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2011-01-07 19:29 UTC (permalink / raw)
  To: Jonathan Nieder; +Cc: Anders Kaseorg, git, Paul Mackerras

Jonathan Nieder <jrnieder@gmail.com> writes:

> Junio C Hamano wrote:
>> Anders Kaseorg <andersk@MIT.EDU> writes:
>
>>> The executable bit on gitk-git/gitk was lost (accidentally it seems) by 
>>> commit 62ba5143ec2ab9d4083669b1b1679355e7639cd5.  Put it back, so that 
>>> gitk can be run directly from a git.git checkout.
>>>
>>> Note that the script is already executable in gitk.git, just not in 
>>> git.git.
>>
>> It did not lose the bit by accident but 62ba5143 pretty much was a
>> deliberate fix.  "gitk" is a source file, and its build product,
>> gitk-wish, is what is eventually installed with executable bit on.
>
> How does this case differ from other executable source files like
> git-am.sh?

Ok, strike that.

In the old days, some of us (but not me) used to value somewhat to be able
to run git-$frotz.sh from the build directory before installing, and having
the executable bit was in line with that philosophy.

I don't know if it still hold today, though.  For one thing, our Makefile
replace a lot more than it used to when building $(SCRIPTS) out of the
source files and git-$frotz.sh may not run in place as easily as before
anymore.

So it doesn't matter too much either way (and of course you can always say
"sh ./git-$frotz.sh" when it is not executable and the functioning of the
script does not depend on replacement done by the Makefile).

It seems that the majority is marked with executable bit, so just for the
sake of uniformity it probably is Ok to make it executable.  From a
purist's point of view, I'd rather see them uniformly marked as
non-executable, but as I said, it doesn't matter much to me (iow, meh).

The change needs to come from gitk repository, so I'll leave it up to Paul
;-)

Thanks for a sanity, Jonathan.

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

* Re: [PATCH] Mark gitk script executable
  2011-01-07 19:29     ` Junio C Hamano
@ 2011-01-07 20:35       ` Anders Kaseorg
  2011-01-07 20:45         ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Anders Kaseorg @ 2011-01-07 20:35 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Jonathan Nieder, git, Paul Mackerras

On Fri, 7 Jan 2011, Junio C Hamano wrote:
> The change needs to come from gitk repository, so I'll leave it up to Paul
> ;-)

No, the script has always been executable in gitk.git.  The patch should 
be applied directly to git.git to bring the two repositories in sync.

Anders

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

* Re: [PATCH] Mark gitk script executable
  2011-01-07 20:35       ` Anders Kaseorg
@ 2011-01-07 20:45         ` Junio C Hamano
  2011-01-07 20:56           ` Anders Kaseorg
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2011-01-07 20:45 UTC (permalink / raw)
  To: Anders Kaseorg; +Cc: Junio C Hamano, Jonathan Nieder, git, Paul Mackerras

Anders Kaseorg <andersk@MIT.EDU> writes:

> On Fri, 7 Jan 2011, Junio C Hamano wrote:
>> The change needs to come from gitk repository, so I'll leave it up to Paul
>> ;-)
>
> No, the script has always been executable in gitk.git.  The patch should 
> be applied directly to git.git to bring the two repositories in sync.

If that is the case perhaps the next pull will fix that ;-)

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

* Re: [PATCH] Mark gitk script executable
  2011-01-07 20:45         ` Junio C Hamano
@ 2011-01-07 20:56           ` Anders Kaseorg
  0 siblings, 0 replies; 7+ messages in thread
From: Anders Kaseorg @ 2011-01-07 20:56 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Jonathan Nieder, git, Paul Mackerras

On Fri, 7 Jan 2011, Junio C Hamano wrote:
> If that is the case perhaps the next pull will fix that ;-)

Nope.  There’s nothing to pull; the current gitk.git master was already 
taken by the last pull.  Even once there are commits to pull, the common 
ancestor will be 6758ad94, in which the script is executable, so the 
script will remain non-executable in the merge result.  (And you can see 
for yourself that the last 28 pulls since 62ba5143 haven’t added the 
executable bit.)

The point is that 62ba5143 introduced a change to git.git that wasn’t in 
gitk.git, and that change will remain in git.git until it’s undone in 
git.git.

Anders

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

end of thread, other threads:[~2011-01-07 20:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07  1:14 [PATCH] Mark gitk script executable Anders Kaseorg
2011-01-07  2:34 ` Junio C Hamano
2011-01-07  3:01   ` Jonathan Nieder
2011-01-07 19:29     ` Junio C Hamano
2011-01-07 20:35       ` Anders Kaseorg
2011-01-07 20:45         ` Junio C Hamano
2011-01-07 20:56           ` Anders Kaseorg

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