This gist has been converted to an article: https://steinbaugh.com/posts/git-private-fork.html
This file contains 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
# I'm no longer using this approach. | |
# | |
# Instead, I encourage you to check out my transformer package. | |
# https://steinbaugh.com/transformer/ | |
# https://github.com/steinbaugh/transformer/ | |
# | |
# - M | |
This file contains 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 | |
# This code was written by Krzysztof Kowalczyk (http://blog.kowalczyk.info) | |
# and is placed in public domain. | |
def v2fhelper(v, suff, version, weight): | |
parts = v.split(suff) | |
if 2 != len(parts): | |
return v | |
version[4] = weight |