Fonctions de manipulation de versionning (avec git)
More...
Fonctions de manipulation de versionning (avec git)
◆ changerVersionBranche()
def changerVersionBranche |
( |
|
self, |
|
|
|
chemin, |
|
|
|
branche |
|
) |
| |
changer la version actuelle (avec une base branche):
- Parameters
-
chemin | chemin du repertoire git |
nombranche | branche contenant la branche avec le contenu désiré |
◆ changerVersionCommit()
def changerVersionCommit |
( |
|
self, |
|
|
|
chemin, |
|
|
|
commit |
|
) |
| |
commit d'un fichier (branche principale)
- Parameters
-
cheminFichier | le chemin du fichier |
texteCommit | le texte associé au commit |
- Returns
- le hash du commit def embranchement(self, cheminFichier, nomBranche): repo = Repo.init(cheminFichier) repo.create_head(nomBranche, 'HEAD') changer la version actuelle (avec une base commit):
- Parameters
-
chemin | chemin du repertoire git |
commit | branche contenant le commit de la version à charger |
◆ commit()
def commit |
( |
|
self, |
|
|
|
cheminFichier, |
|
|
|
nomFichier, |
|
|
|
texteCommit |
|
) |
| |
commit d'un fichier (branche principale)
- Parameters
-
cheminFichier | le chemin du fichier |
texteCommit | le texte associé au commit |
- Returns
- le hash du commit
◆ mergeVersion()
def mergeVersion |
( |
|
self, |
|
|
|
chemin, |
|
|
|
nombranche |
|
) |
| |
valider une nouvelle version courante d'un contenu - Un peu plus compliqué à faire.
- Parameters
-
chemin | chemin du repertoire git |
nombranche | branche contenant le contenu temporaire à repasser en principal |
The documentation for this class was generated from the following file: