rpm
5.4.15
|
Go to the source code of this file.
Macros | |
#define | rpmgitUnlink(_git) ((rpmgit)rpmioUnlinkPoolItem((rpmioItem)(_git), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmgitLink(_git) ((rpmgit)rpmioLinkPoolItem((rpmioItem)(_git), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmgitFree(_git) ((rpmgit)rpmioFreePoolItem((rpmioItem)(_git), __FUNCTION__, __FILE__, __LINE__)) |
Typedefs | |
typedef struct rpmgit_s * | rpmgit |
Functions | |
rpmgit | rpmgitUnlink (rpmgit git) |
Unreference a git wrapper instance. More... | |
rpmgit | rpmgitLink (rpmgit git) |
Reference a git wrapper instance. More... | |
rpmgit | rpmgitFree (rpmgit git) |
Destroy a git wrapper. More... | |
rpmgit | rpmgitNew (char **argv, uint32_t flags, void *_opts) |
Create and load a git wrapper. More... | |
rpmRC | rpmgitRun (rpmgit git, const char *str, const char **resultp) |
Execute git string. More... | |
rpmRC | rpmgitCmdAdd (int argc, char *argv[]) |
rpmRC | rpmgitCmdCommit (int argc, char *argv[]) |
rpmRC | rpmgitCmdDiff (int argc, char *argv[]) |
rpmRC | rpmgitCmdInit (int argc, char *argv[]) |
rpmRC | rpmgitCmdStatus (int argc, char *argv[]) |
void | rpmgitPrintOid (const char *msg, const void *_oidp, void *_fp) |
void | rpmgitPrintTime (const char *msg, time_t _Ctime, void *_fp) |
void | rpmgitPrintSig (const char *msg, const void *___S, void *_fp) |
void | rpmgitPrintIndex (void *___I, void *_fp) |
void | rpmgitPrintTree (void *___T, void *_fp) |
void | rpmgitPrintCommit (rpmgit git, void *___C, void *_fp) |
void | rpmgitPrintTag (rpmgit git, void *_tag, void *_fp) |
void | rpmgitPrintHead (rpmgit git, void *___H, void *_fp) |
void | rpmgitPrintRepo (rpmgit git, void *___R, void *_fp) |
int | rpmgitInit (rpmgit git, void *initopts) |
int | rpmgitAddFile (rpmgit git, const char *fn) |
int | rpmgitCommit (rpmgit git, const char *msg) |
int | rpmgitConfig (rpmgit git) |
const char * | rpmgitOid (rpmgit git, const void *_oid) |
int | rpmgitClose (rpmgit git) |
int | rpmgitOpen (rpmgit git, const char *repodir) |
int | rpmgitInfo (rpmgit git) |
int | rpmgitTree (rpmgit git) |
int | rpmgitWalk (rpmgit git) |
int | rpmgitRead (rpmgit git) |
int | rpmgitWrite (rpmgit git) |
Variables | |
int | _rpmgit_debug |
rpmgit | _rpmgitI |
const char * | _rpmgit_dir |
const char * | _rpmgit_tree |
#define rpmgitFree | ( | _git | ) | ((rpmgit)rpmioFreePoolItem((rpmioItem)(_git), __FUNCTION__, __FILE__, __LINE__)) |
#define rpmgitLink | ( | _git | ) | ((rpmgit)rpmioLinkPoolItem((rpmioItem)(_git), __FUNCTION__, __FILE__, __LINE__)) |
#define rpmgitUnlink | ( | _git | ) | ((rpmgit)rpmioUnlinkPoolItem((rpmioItem)(_git), __FUNCTION__, __FILE__, __LINE__)) |
int rpmgitAddFile | ( | rpmgit | git, |
const char * | fn | ||
) |
int rpmgitClose | ( | rpmgit | git | ) |
rpmRC rpmgitCmdAdd | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1300 of file rpmgit.c.
References _rpmgit_debug, N_, rpmgitFree(), rpmgitNew(), rpmgitPrintIndex(), RPMRC_FAIL, RPMRC_OK, and SPEW.
rpmRC rpmgitCmdCommit | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1391 of file rpmgit.c.
References _free(), b, d, data, err, N_, obj, opts, output(), rpmgitCommit(), rpmgitFree(), rpmgitNew(), rpmgitPrintCommit(), rpmgitPrintHead(), rpmgitPrintIndex(), RPMRC_FAIL, RPMRC_OK, SPEW, and xstrdup().
rpmRC rpmgitCmdDiff | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1653 of file rpmgit.c.
References b, i, N_, opts, rpmgitFree(), rpmgitNew(), RPMRC_FAIL, RPMRC_OK, and SPEW.
rpmRC rpmgitCmdInit | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1045 of file rpmgit.c.
References _free(), _rpmgit_debug, command, current, file, filenames, i, in, limit, N_, name, Open(), options, opts, rpmgitAddFile(), rpmgitCommit(), rpmgitConfig(), rpmgitFree(), rpmgitInit(), rpmgitNew(), rpmgitPrintCommit(), rpmgitPrintHead(), rpmgitPrintIndex(), RPMRC_FAIL, RPMRC_OK, SPEW, user, v, and zero.
rpmRC rpmgitCmdStatus | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 2214 of file rpmgit.c.
References _free(), N_, rpmgitFree(), rpmgitNew(), RPMRC_FAIL, RPMRC_OK, SPEW, xstrdup(), and ZERO.
int rpmgitCommit | ( | rpmgit | git, |
const char * | msg | ||
) |
Definition at line 535 of file rpmgit.c.
References _rpmgit_debug, rpmgitPrintOid(), rpmgitPrintTree(), and SPEW.
Referenced by rpmgitCmdCommit(), and rpmgitCmdInit().
int rpmgitConfig | ( | rpmgit | git | ) |
Destroy a git wrapper.
git | git wrapper |
Referenced by expandMacro(), rpmgitCmdAdd(), rpmgitCmdCommit(), rpmgitCmdDiff(), rpmgitCmdInit(), rpmgitCmdStatus(), and rpmioClean().
int rpmgitInfo | ( | rpmgit | git | ) |
Definition at line 789 of file rpmgit.c.
References alloca(), gidToGname(), i, oid, SPEW, and uidToUname().
int rpmgitInit | ( | rpmgit | git, |
void * | initopts | ||
) |
Definition at line 473 of file rpmgit.c.
References _rpmgit_debug, opts, rpmgitPrintRepo(), and SPEW.
Referenced by rpmgitCmdInit().
Reference a git wrapper instance.
git | git wrapper |
Referenced by rpmgitNew().
rpmgit rpmgitNew | ( | char ** | argv, |
uint32_t | flags, | ||
void * | _opts | ||
) |
Create and load a git wrapper.
argv | git args |
flags | git flags |
_opts | poptOption table |
Definition at line 2750 of file rpmgit.c.
References _free(), _rpmgit_debug, _rpmgit_dir, _rpmgit_threads, arg, argvCount(), argvFree(), argvSplit(), flags, i, opts, rpmExpand(), rpmgitGetPool(), rpmgitI(), rpmgitLink(), rpmgitOpen(), rpmgitOpts, rpmgitPopt(), rpmgitRun(), Stat(), and xstrdup().
Referenced by expandMacro(), rpmgitCmdAdd(), rpmgitCmdCommit(), rpmgitCmdDiff(), rpmgitCmdInit(), rpmgitCmdStatus(), and rpmgitI().
const char* rpmgitOid | ( | rpmgit | git, |
const void * | _oid | ||
) |
int rpmgitOpen | ( | rpmgit | git, |
const char * | repodir | ||
) |
Definition at line 705 of file rpmgit.c.
References _free(), Realpath(), and SPEW.
Referenced by rpmgitNew().
void rpmgitPrintCommit | ( | rpmgit | git, |
void * | ___C, | ||
void * | _fp | ||
) |
Referenced by rpmgitCmdCommit(), and rpmgitCmdInit().
void rpmgitPrintHead | ( | rpmgit | git, |
void * | ___H, | ||
void * | _fp | ||
) |
Referenced by rpmgitCmdCommit(), and rpmgitCmdInit().
void rpmgitPrintIndex | ( | void * | ___I, |
void * | _fp | ||
) |
Referenced by rpmgitCmdAdd(), rpmgitCmdCommit(), and rpmgitCmdInit().
void rpmgitPrintOid | ( | const char * | msg, |
const void * | _oidp, | ||
void * | _fp | ||
) |
Referenced by rpmgitCommit(), and rpmgitWalk().
void rpmgitPrintRepo | ( | rpmgit | git, |
void * | ___R, | ||
void * | _fp | ||
) |
Referenced by rpmgitInit(), and rpmgitPopt().
void rpmgitPrintSig | ( | const char * | msg, |
const void * | ___S, | ||
void * | _fp | ||
) |
void rpmgitPrintTag | ( | rpmgit | git, |
void * | _tag, | ||
void * | _fp | ||
) |
void rpmgitPrintTime | ( | const char * | msg, |
time_t | _Ctime, | ||
void * | _fp | ||
) |
Referenced by rpmgitWalk().
void rpmgitPrintTree | ( | void * | ___T, |
void * | _fp | ||
) |
Referenced by rpmgitCommit().
int rpmgitRead | ( | rpmgit | git | ) |
Execute git string.
git | git interpreter (NULL uses global interpreter) |
str | git string to execute (NULL returns RPMRC_FAIL) |
*resultp | git exec result |
Definition at line 2825 of file rpmgit.c.
References _rpmgit_debug, cmd, rpmgitI(), and RPMRC_FAIL.
Referenced by expandMacro(), and rpmgitNew().
Unreference a git wrapper instance.
git | git wrapper |
int rpmgitWalk | ( | rpmgit | git | ) |
Definition at line 744 of file rpmgit.c.
References oid, rpmgitPrintOid(), rpmgitPrintTime(), and SPEW.
int rpmgitWrite | ( | rpmgit | git | ) |
int _rpmgit_debug |
Definition at line 21 of file rpmgit.c.
Referenced by rpmgitCmdAdd(), rpmgitCmdInit(), rpmgitCommit(), rpmgitGetPool(), rpmgitInit(), rpmgitNew(), rpmgitPopt(), and rpmgitRun().
const char* _rpmgit_dir |
Definition at line 23 of file rpmgit.c.
Referenced by rpmgitNew().
rpmgit _rpmgitI |
Definition at line 2717 of file rpmgit.c.
Referenced by rpmgitI(), and rpmioClean().