Coder Social home page Coder Social logo

exgit's Introduction

eXgit

Module for interacting with the git repository.

Building & Installing

Prerequisites:

  • eXist-db >= 2.1
  • Maven > 2
  • Ant > 1.8.0

Compile and package with Maven using the command:

mvn clean package

The jar files will have been created in /target.

Create an expath package with ant:

ant

The package will have been created in /build.

Install the package into eXist-db.

functions

git:create($localPath as xs:string) as xs:boolean

$localPath as xs:string - Local path

git:clone($remotePath as xs:string, $localPath as xs:string, $username as xs:string, $password as xs:string) as xs:boolean

$remotePath as xs:string - Remote path $localPath as xs:string - Local path $username as xs:string - Username $password as xs:string - Password

git:add($localPath as xs:string, $filepattern as xs:string+) as xs:boolean

$localPath as xs:string - Local path $filepattern as xs:string+ - File pattern

git:commit($localPath as xs:string, $message as xs:string) as xs:boolean

$localPath as xs:string - Local path $message as xs:string - Message

git:commit($localPath as xs:string, $message as xs:string, $files as xs:string*) as xs:boolean

$localPath as xs:string - Local path $message as xs:string - Message $files as xs:string* - Files to commit

git:tag($localPath as xs:string, $tagName as xs:string) as xs:boolean

$localPath as xs:string - Local path $tagName as xs:string - Tag name

git:checkout($localPath as xs:string, $branch-name as xs:string) as xs:boolean

$localPath as xs:string - Local path $branch-name as xs:string - The name of the branch

git:merge($localPath as xs:string, $branch-name as xs:string) as xs:boolean

$localPath as xs:string - Local path $branch-name as xs:string - The name of the branch

git:diff($localPath as xs:string) as xs:boolean

$localPath as xs:string - Local path

git:push($localPath as xs:string, $username as xs:string, $password as xs:string) as xs:boolean

$localPath as xs:string - Local path $username as xs:string - Username $password as xs:string - Password

git:pull($localPath as xs:string, $username as xs:string, $password as xs:string) as xs:boolean

$localPath as xs:string - Local path $username as xs:string - Username $password as xs:string - Password

git:branch-create($localPath as xs:string, $branch-name as xs:string, $start-point as xs:string) as xs:boolean

$localPath as xs:string - Local path $branch-name as xs:string - The name of the branch $start-point as xs:string -

git:branch-create($localPath as xs:string, $branch-name as xs:string) as xs:boolean

$localPath as xs:string - Local path $branch-name as xs:string - The name of the branch

git:branch-delete($localPath as xs:string, $branch-name as xs:string) as xs:boolean

$localPath as xs:string - Local path $branch-name as xs:string - The name of the branch

git:branch-list($localPath as xs:string) as xs:string?

$localPath as xs:string - Local path

git:branch-rename($localPath as xs:string, $old-branch-name as xs:string, $new-branch-name as xs:string) as xs:boolean

$localPath as xs:string - Local path $old-branch-name as xs:string - The old name of the branch $new-branch-name as xs:string - The new name of the branch

git:log($localPath as xs:string) as node()*

$localPath as xs:string - Local path

git:reset($localPath as xs:string, $type as xs:string) as xs:boolean

$localPath as xs:string - Local path $type as xs:string -

git:status($localPath as xs:string, $gitPath as xs:string, $recursive as xs:boolean) as xs:string*

$localPath as xs:string - Local path $gitPath as xs:string - Repository path $recursive as xs:boolean - Recursive

git:status-untracked($localPath as xs:string) as xs:string*

$localPath as xs:string - Local path

git:status-added($localPath as xs:string) as xs:string*

$localPath as xs:string - Local path

git:status-changed($localPath as xs:string) as xs:string*

$localPath as xs:string - Local path

git:status-conflicting($localPath as xs:string) as xs:string*

$localPath as xs:string - Local path

git:status-ignored($localPath as xs:string) as xs:string*

$localPath as xs:string - Local path

git:status-missing($localPath as xs:string) as xs:string*

$localPath as xs:string - Local path

git:status-modified($localPath as xs:string) as xs:string*

$localPath as xs:string - Local path

git:status-removed($localPath as xs:string) as xs:string*

$localPath as xs:string - Local path

git:status-untracked-folders($localPath as xs:string) as xs:string*

$localPath as xs:string - Local path

git:cat($localPath as xs:string, $Path as xs:string) as xs:base64Binary

$localPath as xs:string - Local path $Path as xs:string - File path

git:cat-working-copy($localPath as xs:string, $Path as xs:string) as xs:base64Binary

$localPath as xs:string - Local path $Path as xs:string - File path

exgit's People

Contributors

shabanovd avatar gev avatar roewenstrunk avatar joewiz avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.