TrackGit
Functions
Pull.cpp File Reference

Implementaion file of Pull command. More...

#include "Pull.h"
#include "../Utils.h"
#include <InterfaceKit.h>
#include <git2.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

int fetchhead_ref_cb (const char *name, const char *url, const git_oid *oid, unsigned int is_merge, void *payload_v)
 This function gets the branch to be merged. More...
 
void * DoPullThread (void *arg)
 This does git pull on given repository. More...
 

Detailed Description

Implementaion file of Pull command.

Author
Hrishikesh Hiraskar hrish.nosp@m.ihir.nosp@m.askar.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition in file Pull.cpp.

Function Documentation

◆ DoPullThread()

void* DoPullThread ( void *  arg)

This does git pull on given repository.

This also shows progress in given progress window.

Parameters
argThis contains repo path and progress window

Definition at line 70 of file Pull.cpp.

◆ fetchhead_ref_cb()

int fetchhead_ref_cb ( const char *  name,
const char *  url,
const git_oid *  oid,
unsigned int  is_merge,
void *  payload_v 
)

This function gets the branch to be merged.

Definition at line 54 of file Pull.cpp.