Skip to content

gitrepo

Repository tools

Git repository

Authors:

  • Stijn De Weirdt (Ghent University)
  • Dries Verdegem (Ghent University)
  • Kenneth Hoste (Ghent University)
  • Pieter De Baets (Ghent University)
  • Jens Timmerman (Ghent University)
  • Toon Willems (Ghent University)
  • Ward Poelmans (Ghent University)
  • Fotis Georgatos (Uni.Lu, NTUA)

GitRepository

Bases: FileRepository

Class for git repositories.

__init__(*args)

Initialize git client to None (will be set later) All the real logic is in the setup_repo and create_working_copy methods

add_easyconfig(cfg, name, version, stats, previous_stats)

Add easyconfig to git repository

PARAMETER DESCRIPTION
cfg

location of easyconfig file

name

software name

version

software install version, incl. toolchain & versionsuffix

stats

build stats, to add to archived easyconfig

previous_stats

list of previous build stats

RETURNS DESCRIPTION

location of archived easyconfig

add_patch(patch, name)

Add patch to git repository

PARAMETER DESCRIPTION
patch

location of patch file

name

software name

RETURNS DESCRIPTION

location of archived patch

cleanup()

Clean up git working copy.

commit(msg=None)

Commit working copy to git repository

create_working_copy()

Create git working copy.

setup_repo()

Set up git repository.

stage_file(path)

Stage file at specified location in repository for commit

PARAMETER DESCRIPTION
path

location of file to stage