aboutsummaryrefslogtreecommitdiff
path: root/package_git.go
AgeCommit message (Collapse)Author
2025-07-06all: replace module github.com/shuLhan/share with pakakeh.goShulhan
2023-03-07all: prefix the error in Package Remove and gitInstallShulhan
2023-03-03all: reformat all .go files with Go 1.19 gofmtShulhan
2018-12-14all: minimize naked return on long functionsShulhan
2018-12-14all: rewrite switch-statement with single case to if-statementShulhan
2018-12-14package_git: set package remote URL according to value in databaseShulhan
2018-09-29package_git: check for empty tag which cause empty versionShulhan
2018-09-15package_git: call continue if branch name match with "master"Shulhan
While at it, update the comment to reflect the code below.
2018-09-15package: get remote branch if its emptyShulhan
2018-09-15package_git: check for empty branches when getting branchShulhan
2018-09-14Get and save package remote branch in databaseShulhan
Some package does not have "master" branch. This will minimize parsing and filter operation to get default branch before checking out revision.
2018-09-14Add freeze methods to packageShulhan
Previously, we call package Update when doing Freeze operation, which cause confusion, because Update use parameter newPkg which may change the remote URL or version.
2018-09-13Replace git and common functions with package share/lib/{git,io}Shulhan
2018-07-02package.gitCheckoutVersion: do not use "git stash"Shulhan
Using "git stash" introduce many problems when rebuilding the package after update.
2018-06-06gitCheckoutVersion: run git clean to make sure no untracked files leftShulhan
2018-06-05gitUpdate: do not return if version is matched with new package versionShulhan
This will allow freeze operation to work on all packages.
2018-06-05gitCheckoutVersion: use master branch as HEAD for current versionShulhan
2018-06-05package.gitCheckoutVersion: check for empty versionShulhan
2018-06-04[chore] Add copyright informationShulhan
2018-06-04Add common option "-V, --vendor" to work with vendor directoryShulhan
2018-06-04[chore] Add context to debug outputShulhan
Each debug statement is prefixed with "[X] func" where X is either ENV for debug in environment's methods or PKG for debug in package's methods.
2018-05-29Fetch new package commits before updating versionShulhan
2018-05-27package: gitCheckoutVersion: stash change before checking out versionShulhan
2018-05-27package: display command directory on debug outputShulhan
2018-05-26Wrap println debug statements with Debug variableShulhan
2018-05-24Replace "log" with "fmt"Shulhan
2018-05-21Use filepath.Join when applicableShulhan
2018-05-21package.gitClone: return error if destination directory is not emptyShulhan
2018-05-19Implement package installationShulhan
2018-05-19[test] package: add unit test for String, Update, and UpdateMissingDepShulhan
2018-05-17[test] Add unit test for package ScanShulhan
2018-05-17[test] Add unit test for package Fetch with gitShulhan
2018-05-17Change git compare from using browser to using "git log"Shulhan
Also, * add unit test for gitCompareVersion * use defined variable for standard output and error so we can use it on testing
2018-05-16Add package synchronize operation (--sync,-S)Shulhan