This guide on how to convert an SVN repository to a git repository was mostly taken from John Albin Wilkins post on Converting a Subversion repository to Git.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def tmpRes = 'build/dependencyATs' | |
sourceSets.main.resources.srcDirs += [tmpRes] | |
configurations.compile.copy().each { file -> | |
logger.lifecycle "Processing ${file.path}..." | |
copy { | |
from(zipTree(file.path)) { | |
include '*_at.cfg' | |
} | |
into(tmpRes) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories { | |
ivy { | |
name "CoFHLib" | |
artifactPattern "http://addons.cursecdn.com/files/2212/893/[module]-[revision].[ext]" | |
} | |
ivy { | |
name "CoFHCore" | |
artifactPattern "http://addons.cursecdn.com/files/2212/895/[module]-[revision].[ext]" | |
} | |
ivy { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
if sys.version_info.major < 2: | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.nofile { | |
color: red; | |
} | |
.nofile.highlighted { | |
color: #ff9999 !important; | |
} | |
.file { | |
color: orange; | |
} | |
.file.highlighted { |
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
- Example: https://gist.github.com/atenni/5604522/raw/
- Works even when you change the filename.
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]