Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] I can't ignore .gitignore



On Tue, Jul 9, 2013 at 1:07 PM, Christoph Pospiech <Christoph.Pospiech@xxxxxxxxxx> wrote:

On Tuesday, July 09, 2013 10:03:48 "Dr. David E Hudak" <dhudak@xxxxxxx> wrote:

> Hi Christoph,

>

> I would be willing to put in a feature request for option #1 below (don't

> create .gitignore in nonempty directories).  What do you think?

>

> Thanks,

> Dave

 

Dave,

 

I would think that would help a lot.

 

I have been experimenting with a top level .gitignore with contents as follows.

/.ptp-sync

/*/.gitignore

/*/*/.gitignore

/*/*/*/.gitignore

/*/*/*/*/.gitignore


Is it important to you not to ignore the top-level gitignore? Ignoring files only has an effect on untracked files. Thus as soon as you added the top-level gitignore it doesn't matter if it is itself ignored. Thus you can simplify your rules to:
.gitignore
(no slash in the rule means that it applies to files in any directory).
 

More lines with more '*/' might be added. This makes the .gitignore disappear from command line "git status" and Egit project manager display as desired.

 

At least that is a work around until the feature request is implemented.

 

To make this a general solution I guess that the non top level .gitignore should be renamed into .ignore_me and corresponding entries /*.../.ignore_me should be added to the top level .gitignore.

I don't see a disadvantage of renaming and don't remember why we choose to use the gitignore name. So I think this is a good idea. 

On the other hand I'm not sure it makes so much sense to add the .ignore_me to the .gitignore. We want the sync to be independent of the version control, work with any version control, and we don't know which VC the user is using. We can't really add the .ignore_me to the cvs/svn/git/... ignore files just in case a user is using that type of version control. Thus, I think the user might need to add it themselves based on the version control they choose.

Roland
 

This would leave the name .gitignore available to those users using .gitignore for their own purposes.

 

Would that be a feasible extension of your feature request ?

--

 

Mit freundlichen Grüßen / Kind regards

 

Dr. Christoph Pospiech

High Performance & Parallel Computing

Phone: +49-351 86269826

Mobile: +49-171-765 5871

E-Mail: christoph.pospiech@xxxxxxxxxx

-------------------------------------------------------------------------------------------------------------------------------------------

IBM Deutschland GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter

Geschäftsführung: Martina Koederitz (Vorsitzende), Reinhard Reschke, Dieter Scholz, Gregor Pillen, Joachim Heel, Christian Noll

Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 14562 / WEEE-Reg.-Nr. DE 99369940

 




--
ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
865-241-1537, ORNL PO BOX 2008 MS6309

Back to the top