Skip to content

dfgit is a small program that allows for tracking changes in code on the DiamondFire Minecraft server using git.

License

Notifications You must be signed in to change notification settings

dftooling/dfgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dfgit 🚀

dfgit is a small blazingly fast program that allows for tracking changes in code on the DiamondFire Minecraft server using git.

YOU MUST ENABLE THE CODECLIENT API IN IT'S CONFIG MENU FOR THE PROGRAM TO WORK!!!!!!!

Setup

You can use the template provided at dfgit-tool/dfgit-template or use any repository. dfgit does not require special setup in the repository.

Usage

dfgit clone <repo> - Acts like both clone and pull

Clones a repo and inserts it into your current plot.

dfgit commit <repo> <message> - Acts like both commit and push

Clones a repo, updates it with changes from your plot, and commits the changes.

--dir <target>

Passing this argument will change the directory within the repo that dfgit uses. It overrides the template_directory option in .dfgit.

Requirements

  • You must have the CodeClient mod installed.
  • You must have git installed.

.dfgit config file

The .dfgit file contains settings for dfgit, and should be found in the root directory of a repo, however dfgit does not require the existance of the file. It uses the yaml format.

Example config file

template_directory: templates

Options

template_directory

Specifies the directory that dfgit will look for and create templates in (relative to the repo root). Defaults to .. Overriden by the --dir flag.

More Info

dfgit stores templates in .df files. The files contain the raw json template data. Filenames are generated from the block type and event/function name. You should avoid manually creating .df files, as they will all be read but may not be written to if the name doesen't match. Different formatting may also cause issues.

About

dfgit is a small program that allows for tracking changes in code on the DiamondFire Minecraft server using git.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages