gsp

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

GSP

git simple packager

Config example

The following file ( .gsp-config.json ) should be in the same directory as the gsp binary and the root of your home directory. If you are on Windows that would be C:/Users/$username. The executable file ( gsp.exe ) needs to be in a directory that is on the path variable.

To use the commits count from the HEAD to the commit you want to stop at, set the commitsCount value in your ( .gsp-config.json ) file and leave the getHashNewest and gitHashOldest values empty in your jason file. If you want to use the hash keys to fine tune your packages here are some things you must do. The easiest way is to use the Git GUI.
You access this by running:

gitk&

The ampersand will allow the shell and the GUI to be open at the same time. Now how do you fill out the two keys you ask? Here is the answer and please pay special attention.
For the key gitHasNewest you are going to select the newest hash. For the key gitHashOldest you are going to select the oldest hash. Do not get frustrated just run gsp -n and you can always get a preview.

{
  "commitsCount": 3,
  "diffFilter": "AM",
  "directoryNames": [
    "pkg/"
  ],
  "gitHashNewest": "",
  "gitHashOldest": "",
  "outputPath": "output-root-folder",
  "repositoryPath": "git-repository-folder"
}

If the options gitHashNewest or gitHashOldest are not empty, then the option commitsCount will be ignored.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
lib
tpl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL