adding a file to git: +.ly

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

adding a file to git: +.ly

Graham Percival-2
In the input/* collated-files, we use a file called +.ly to display info
at the top of the collection.  How do I escape the file to add it to
git?  I've tried "", \, and everything else I can think of.  "git add"
always thinks the + is a git option, not a filename char.

Here's a file I tried to add as
input/lsr/trick/+.ly

If somebody could add it for me (and also in input/lsr/advanced/+.ly ; I
can change the text later) that would be great.



\version "2.10.0"
%% +.ly: Be the first .ly file for lys-to-tely.py.
%% Better to make lys-to-tely.py include "introduction.texi" or
%% other .texi documents too?

\header{
texidoc = #(string-append "
@section Introduction

This document shows all kinds of `tricks and tips' snippets from the
LilyPond Snippet Repository.

In the web version of this document, you can click on the file name
or figure for each example to see the corresponding input file.

This document is for LilyPond version
" (lilypond-version) ".")
}

% make sure .png  is generated.
\lyrics {  "(left blank intentionally)" }



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: adding a file to git: +.ly

Johannes Schindelin
Hi,

On Sat, 20 Jan 2007, Graham Percival wrote:

> In the input/* collated-files, we use a file called +.ly to display info
> at the top of the collection.  How do I escape the file to add it to
> git?  I've tried "", \, and everything else I can think of.  "git add"
> always thinks the + is a git option, not a filename char.

Have you tried "git add -- +.ly"?

Ciao,
Dscho



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: adding a file to git: +.ly

Graham Percival-2
Johannes Schindelin wrote:
> On Sat, 20 Jan 2007, Graham Percival wrote:
>
>> In the input/* collated-files, we use a file called +.ly to display info
>> at the top of the collection.  How do I escape the file to add it to
>> git?  I've tried "", \, and everything else I can think of.  "git add"
>> always thinks the + is a git option, not a filename char.
>
> Have you tried "git add -- +.ly"?

No, but I just tried it now.  Still no luck.  :(

git version 1.4.4.2

Cheers,
- Graham


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: adding a file to git: +.ly

Johannes Schindelin
Hi,

On Sat, 20 Jan 2007, Graham Percival wrote:

> Johannes Schindelin wrote:
> > On Sat, 20 Jan 2007, Graham Percival wrote:
> >
> > > In the input/* collated-files, we use a file called +.ly to display info
> > > at the top of the collection.  How do I escape the file to add it to git?
> > > I've tried "", \, and everything else I can think of.  "git add" always
> > > thinks the + is a git option, not a filename char.
> >
> > Have you tried "git add -- +.ly"?
>
> No, but I just tried it now.  Still no luck.  :(
>
> git version 1.4.4.2

I tried it with the current leading edge git, and it says this:

        The following paths are ignored by one of your .gitignore files:
        input/+.ly
        Use -f if you really want to add them.

Since you do not have that version, "-f" does not work for you. If you
really want to include the file in spite of .gitignore saying
something different, try

        $ git-update-index --add +.ly

This is supposed to be really hard-core git, and should become unnecessary
with Git 1.5.0.

Hth,
Dscho



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: adding a file to git: +.ly

Graham Percival-2
Johannes Schindelin wrote:
> Since you do not have that version, "-f" does not work for you. If you
> really want to include the file in spite of .gitignore saying
> something different, try
>
> $ git-update-index --add +.ly

Thanks, that worked.

Cheers,
- Graham


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: adding a file to git: +.ly

Erik Sandberg-2
On Saturday 20 January 2007 22:57, Graham Percival wrote:
> Johannes Schindelin wrote:
> > Since you do not have that version, "-f" does not work for you. If you
> > really want to include the file in spite of .gitignore saying
> > something different, try
> >
> > $ git-update-index --add +.ly
>
> Thanks, that worked.

BTW, I have sometimes renamed that file to something like __.ly or __dummy.ly.
The only relevant property of the name +.ly is that it comes before the first
real file. IMHO, + is a misleading name, and in addition it tends to cause
minor headaches like this one.

--
Erik


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: adding a file to git: +.ly

Graham Percival-2
Erik Sandberg wrote:
> On Saturday 20 January 2007 22:57, Graham Percival wrote:
>>> $ git-update-index --add +.ly
>> Thanks, that worked.
>
> BTW, I have sometimes renamed that file to something like __.ly or __dummy.ly.
> The only relevant property of the name +.ly is that it comes before the first
> real file. IMHO, + is a misleading name, and in addition it tends to cause
> minor headaches like this one.

Unforunately  __intro.ly  comes after everything else.  I'm tempted to
rename the file "AAA-intro-tricks.ly" just to avoid these silly
punctuations entirely.  Any objections?

Cheers,
- Graham


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: adding a file to git: +.ly

Han-Wen Nienhuys-2
Graham Percival escreveu:

> Erik Sandberg wrote:
>> On Saturday 20 January 2007 22:57, Graham Percival wrote:
>>>>     $ git-update-index --add +.ly
>>> Thanks, that worked.
>>
>> BTW, I have sometimes renamed that file to something like __.ly or
>> __dummy.ly. The only relevant property of the name +.ly is that it
>> comes before the first real file. IMHO, + is a misleading name, and in
>> addition it tends to cause minor headaches like this one.
>
> Unforunately  __intro.ly  comes after everything else.  I'm tempted to
> rename the file "AAA-intro-tricks.ly" just to avoid these silly
> punctuations entirely.  Any objections?
>

Not at all. AAA-foo demonstrates the purpose of the file more clearly than
+.ly

--

Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel