git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* contrib/mw-to-git/Git/Mediawiki.pm
@ 2013-06-27 16:00 Torsten Bögershausen
  2013-06-27 16:25 ` contrib/mw-to-git/Git/Mediawiki.pm Benoît Person
  0 siblings, 1 reply; 7+ messages in thread
From: Torsten Bögershausen @ 2013-06-27 16:00 UTC (permalink / raw)
  To: benoit.person, Git Mailing List


I just discovered a major problem for
Mac OS and Windows people:

In contrib/mw-to-git/ there is a file called "git".
And there is a directory called "Git".

This does not work very well on case insensitive file systems.
When the file "git" is created, we can not create a directory
called "Git", as "Git" is mapped to "git".
And vice versa.

Can we try to rename one of them ?


The other interesting thing is that git 1.8.3 didn't like the
situation:
After checking out the pu branch, 
git status says:
deleted:    contrib/mw-to-git/Git/Mediawiki.pm

So I could not change to another branch/commit...
git stash didn't resolve the situation either.

The following saved my repo:
git mv contrib/mw-to-git/git contrib/mw-to-git/git.exe
git checkout contrib/mw-to-git/Git/Mediawiki.pm
git checkout -b xxx_git_Git_conflict
git commit -a -m xxx_git_Git_conflict

/Torsten

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

* Re: contrib/mw-to-git/Git/Mediawiki.pm
  2013-06-27 16:00 contrib/mw-to-git/Git/Mediawiki.pm Torsten Bögershausen
@ 2013-06-27 16:25 ` Benoît Person
  2013-06-27 16:39   ` contrib/mw-to-git/Git/Mediawiki.pm Matthieu Moy
  2013-06-27 17:28   ` contrib/mw-to-git/Git/Mediawiki.pm Junio C Hamano
  0 siblings, 2 replies; 7+ messages in thread
From: Benoît Person @ 2013-06-27 16:25 UTC (permalink / raw)
  To: Torsten Bögershausen; +Cc: Git Mailing List, Matthieu Moy, Junio C Hamano

Oops, so sorry :/

It's defintely doable since the lowercase 'git' is only a bin-wrapper
for git to ease development in contrib/mw-to-git/ .

Junio, Matthieu : should I resend a new version of my serie which
renames the 'git' (lowercase) file into something like 'git-dev' ?
(some comments directly mentionning the 'git' (lowercase) file needs
to be updated as well in the Makefile)

Benoit

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

* Re: contrib/mw-to-git/Git/Mediawiki.pm
  2013-06-27 16:25 ` contrib/mw-to-git/Git/Mediawiki.pm Benoît Person
@ 2013-06-27 16:39   ` Matthieu Moy
  2013-06-27 17:29     ` contrib/mw-to-git/Git/Mediawiki.pm Junio C Hamano
  2013-06-27 17:28   ` contrib/mw-to-git/Git/Mediawiki.pm Junio C Hamano
  1 sibling, 1 reply; 7+ messages in thread
From: Matthieu Moy @ 2013-06-27 16:39 UTC (permalink / raw)
  To: Benoît Person
  Cc: Torsten Bögershausen, Git Mailing List, Junio C Hamano

Benoît Person <benoit.person@ensimag.fr> writes:

> Junio, Matthieu : should I resend a new version of my serie which
> renames the 'git' (lowercase) file into something like 'git-dev' ?

I'd call it bin-wrapper/git, so that people can put bin-wrapper/ in
their $PATH if needed, and by analogy with ../../bin-wrapper. If you go
this way, don't forget to update the $0 relative paths.

git-dev is OK with me too.

> (some comments directly mentionning the 'git' (lowercase) file needs
> to be updated as well in the Makefile)

Yes.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

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

* Re: contrib/mw-to-git/Git/Mediawiki.pm
  2013-06-27 16:25 ` contrib/mw-to-git/Git/Mediawiki.pm Benoît Person
  2013-06-27 16:39   ` contrib/mw-to-git/Git/Mediawiki.pm Matthieu Moy
@ 2013-06-27 17:28   ` Junio C Hamano
  1 sibling, 0 replies; 7+ messages in thread
From: Junio C Hamano @ 2013-06-27 17:28 UTC (permalink / raw)
  To: Benoît Person
  Cc: Torsten Bögershausen, Git Mailing List, Matthieu Moy

Benoît Person <benoit.person@ensimag.fr> writes:

> Oops, so sorry :/
>
> It's defintely doable since the lowercase 'git' is only a bin-wrapper
> for git to ease development in contrib/mw-to-git/ .

Hmph.  Does it even need to be in-tree then?  Is it insufficient to
run ../../git from that directory instead?

> Junio, Matthieu : should I resend a new version of my serie which
> renames the 'git' (lowercase) file into something like 'git-dev' ?
> (some comments directly mentionning the 'git' (lowercase) file needs
> to be updated as well in the Makefile)
>
> Benoit

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

* Re: contrib/mw-to-git/Git/Mediawiki.pm
  2013-06-27 16:39   ` contrib/mw-to-git/Git/Mediawiki.pm Matthieu Moy
@ 2013-06-27 17:29     ` Junio C Hamano
  2013-06-27 17:54       ` contrib/mw-to-git/Git/Mediawiki.pm Benoît Person
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2013-06-27 17:29 UTC (permalink / raw)
  To: Matthieu Moy
  Cc: Benoît Person, Torsten Bögershausen, Git Mailing List

Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:

> Benoît Person <benoit.person@ensimag.fr> writes:
>
>> Junio, Matthieu : should I resend a new version of my serie which
>> renames the 'git' (lowercase) file into something like 'git-dev' ?
>
> I'd call it bin-wrapper/git, so that people can put bin-wrapper/ in
> their $PATH if needed, and by analogy with ../../bin-wrapper. If you go
> this way, don't forget to update the $0 relative paths.
>
> git-dev is OK with me too.
>
>> (some comments directly mentionning the 'git' (lowercase) file needs
>> to be updated as well in the Makefile)
>
> Yes.

I just noticed that the script is not strictly a text file, ending
with an incomplete line, by the way.

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

* Re: contrib/mw-to-git/Git/Mediawiki.pm
  2013-06-27 17:29     ` contrib/mw-to-git/Git/Mediawiki.pm Junio C Hamano
@ 2013-06-27 17:54       ` Benoît Person
  2013-06-27 18:07         ` contrib/mw-to-git/Git/Mediawiki.pm Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Benoît Person @ 2013-06-27 17:54 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Matthieu Moy, Torsten Bögershausen, Git Mailing List

> Hmph.  Does it even need to be in-tree then?  Is it insufficient to
> run ../../git from that directory instead?
Well, the fact is we use Perl packages now (Git.pm and
Git::Mediawiki.pm in contrib/mw-to-git/Git/). The way we build perl
scripts in the toplevel's Makefile makes those packages accessible
only in $GITPERLLIB if it's defined and defaults to $INSTLIBDIR to
seek for installed version of those packages.

We use a bin-wrapper to define that $GITPERLLIB variable so that the
installed version gets bypassed by the one presents in the directory
defined in $GITPERLLIB.

> I just noticed that the script is not strictly a text file, ending
> with an incomplete line, by the way.
an incomplete line ?

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

* Re: contrib/mw-to-git/Git/Mediawiki.pm
  2013-06-27 17:54       ` contrib/mw-to-git/Git/Mediawiki.pm Benoît Person
@ 2013-06-27 18:07         ` Junio C Hamano
  0 siblings, 0 replies; 7+ messages in thread
From: Junio C Hamano @ 2013-06-27 18:07 UTC (permalink / raw)
  To: Benoît Person
  Cc: Matthieu Moy, Torsten Bögershausen, Git Mailing List

Benoît Person <benoit.person@ensimag.fr> writes:

>> I just noticed that the script is not strictly a text file, ending
>> with an incomplete line, by the way.
> an incomplete line ?

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_194

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

end of thread, other threads:[~2013-06-27 18:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27 16:00 contrib/mw-to-git/Git/Mediawiki.pm Torsten Bögershausen
2013-06-27 16:25 ` contrib/mw-to-git/Git/Mediawiki.pm Benoît Person
2013-06-27 16:39   ` contrib/mw-to-git/Git/Mediawiki.pm Matthieu Moy
2013-06-27 17:29     ` contrib/mw-to-git/Git/Mediawiki.pm Junio C Hamano
2013-06-27 17:54       ` contrib/mw-to-git/Git/Mediawiki.pm Benoît Person
2013-06-27 18:07         ` contrib/mw-to-git/Git/Mediawiki.pm Junio C Hamano
2013-06-27 17:28   ` contrib/mw-to-git/Git/Mediawiki.pm Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).