On Friday 18 May 2012 21:41:12 J. Daniel Schmidt wrote:
>
> the YaST svn migrated to git - finally!
> 
> The YaST modules are grouped in the yast organization:
>   https://github.com/yast
 
Some people asked me about automatically converting the svnignore properties 
into .gitignore files.
In general: It is possible to automate this - yes - it requires some work 
though. The result would be just a copy of the svnignores.

Anyhow I would recommend that every maintainer reviews the ignore settings of 
his module and creates the .gitignore himself.
The benefits:
- You get used to git(ignore)
- You learn that it only requires one ".gitignore" file on the top level
  instead of setting it for every single directory
- Your can review the ignores and clean them up.
  Maybe we even can summarize them and create yast.gitignore and add it to:
  https://github.com/github/gitignore

The attached script does the initial conversion for you - just review the 
output, clean it up and save the result in .gitignore.
Pass the URL as parameter:
  svnignore2gitignore.pl 


You can do it manually with this command:
   svn propget -R svn:ignore http://svn.opensuse.org/svn/yast/trunk/$MODULE
Just adapt the URL for branches if needed.



Ciao,
   Daniel

-- 
J. Daniel Schmidt <[email protected]>         SUSE LINUX Products GmbH
Research & Development                   Maxfeldstr. 5
HRB 16746 (AG Nürnberg)                  D-90409 Nürnberg
GF:  Jeff Hawn, Jennifer Guild, Felix Imendörffer

Attachment: svnignore2gitignore.pl
Description: Perl program

Reply via email to