Commit Graph

28 Commits

Author SHA1 Message Date
Eng Zer Jun
8164a625c7 refactor: move from io/ioutil to io and os package
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-10-05 01:40:59 +08:00
Daylon Wilkins
6b2b68923b Further attempts to fix ACCESS_DENIED error on Windows 2021-07-15 13:26:59 -07:00
Aaron Son
84c3066348 go/**/*.go: Update copyright headers for company name change. 2020-11-02 10:17:02 -08:00
Daylon Wilkins
b5bb663233 Reference new org name and updated trigger logic 2020-09-25 15:35:04 -07:00
Matt Jesuele
2615c4e2cf go/cmd/git-dolt/README.md: Add comparison to git-lfs and note on updates 2019-11-01 15:12:14 -07:00
Matt Jesuele
1ab113aa0f go/cmd/git-dolt/git-dolt.go: Fake being a git subcommand 2019-08-08 13:00:01 -07:00
Matt Jesuele
5b9811f33e Update git-dolt to use cobra 2019-08-08 13:00:01 -07:00
Aaron Son
5fc6fd5d6a go: Update for dolt at root of repository. 2019-07-24 10:28:54 -07:00
Aaron Son
732086a9c7 dolt/go: Add copyright notices to every file. For files from noms, retain and reference the previous copyright notice as well. 2019-07-22 17:06:35 -07:00
Matt Jesuele
c4e1099ebb dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Fix tiny misspelling in comment 2019-07-10 15:50:15 -07:00
Matt Jesuele
cf1605affa Update README.md again 😞 2019-07-10 10:47:38 -07:00
Matt Jesuele
6167043acc Update README.md 2019-07-10 10:46:55 -07:00
Matt Jesuele
5fe651992b dolt/go/cmd/git-dolt/utils/find_git_config_dir_test.go: Nix unnecessary underscores in testdir names 2019-07-10 08:35:30 -07:00
Matt Jesuele
c83472fba6 dolt/{bats,go}: git dolt install finds the .git directory even if it's in a parent directory (#1715)
Closes #1701.

* dolt/go/cmd/git-dolt/utils/find_git_config_dir*.go: Add util for finding git directory in parent directory structure

* dolt/bats/git-dolt.bats: Add test for git dolt install working in subdirectories of git repos

* dolt/go/cmd/git-dolt/commands/install.go: Find the .git directory even if it's in a parent of the working directory

* dolt/bats/git-dolt.bats: Fix indentation

* dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Omit extraneous type annotation like a good Gopher

* dolt/go/cmd/git-dolt: Use filesystem root instead of home directory as terminal path for .git search

* dolt/bats/git-dolt.bats: Unskip no-longer-hanging test

* dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Add method docs

* dolt/go/cmd/git-dolt/utils/find_git_config_dir_test.go: Create all test files in a temp directory

* dolt/go/cmd/git-dolt/utils/find_git_config_dir*.go: Return an error instead of hanging when currentPath is not a descendent of terminalPath

* dolt/go/cmd/git-dolt: Gofmt

* dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Actually, if these are always absolute paths, we can simplify things a bit
2019-07-09 17:44:28 -07:00
Matt Jesuele
c7664b0eb9 dolt/{bats,go}: Improve output and README for git-dolt (#1682)
* dolt/{bats,go}: Improve output for git dolt update command

* dolt/go/cmd/git-dolt/README.md: Add install and update commands

* dolt/go/cmd/git-dolt/README.md: Add example of usage
2019-07-05 12:48:21 -07:00
Matt Jesuele
190e73e95e dolt/go/cmd/git-dolt/utils/utils_test.go: Add unit tests of dubious necessity for LastSegment 2019-07-02 11:55:40 -07:00
Matt Jesuele
07e2bdc46a dolt/go/cmd/git-dolt/doltops/doltops.go: Remove hacky conditional to suppress branch change output for git-dolt demo 2019-07-02 11:55:40 -07:00
Matt Jesuele
5e3bd27c7f dolt/go/cmd/git-dolt/git-dolt.go: Use log.Fatal where appropriate 2019-07-02 11:55:40 -07:00
Matt Jesuele
bd212a8260 dolt/go/cmd/git-dolt{,-smudge}: Add git smudge filter for git-dolt (#1651)
* dolt/go/cmd/git-dolt/config/config.go: Add package comment

* dolt/go/cmd/git-dolt: Factor CloneToRevision function out of Fetch command

* dolt/go/cmd/git-dolt: Factor AppendToFile out of Link command

* dolt/go/cmd/git-dolt: Add install command

* dolt/go/cmd/git-dolt-smudge: Create git-dolt-smudge command to use as a git smudge filter

* dolt/go/cmd/git-dolt/git-dolt.go: Cleanup

* dolt/bats/git-dolt.bats: Add bats test for git dolt install

* Jenkinsfile: Add git-dolt-smudge to dolt/bats stage

* dolt/bats/git-dolt.bats: Add test for git-dolt smudge filter

* dolt/bats/git-dolt.bats: Configure fake name and email in test git repos so that committing works on Jenkins

* dolt/{bats,go}: Improve git-dolt cloning behavior (especially streaming output from dolt clone); refactor

* dolt/{bats,go}: Small tweaks to git-dolt output
2019-07-01 11:46:02 -07:00
Matt Jesuele
02cf3c1d61 dolt/go/cmd/git-dolt/commands/link.go: Use GitDoltConfig's String method to format the config file contents 2019-06-25 19:50:17 -07:00
Matt Jesuele
ba173837aa dolt/{bats,go}: Factor git-dolt into several packages 2019-06-25 14:18:01 -07:00
Matt Jesuele
f03c753c4d dolt/go/cmd/git-dolt: Handle errors more idiomatically 2019-06-25 14:08:00 -07:00
Matt Jesuele
14580c32a3 dolt/{bats,go}: Super basic implementation of git dolt update (#1621)
* dolt/{bats,go}: Super basic implementation of git dolt update

* dolt/go/cmd/git-dolt: Refactoring/cleanup

* dolt/bats/git-dolt.bats: Improve some output assertions
2019-06-25 11:56:43 -07:00
Matt Jesuele
0ba9cb3abb dolt/{bats,go}: Implement git dolt fetch, improve error messaging and tests, add README (#1503) 2019-06-20 10:02:42 -04:00
Brian Hendriks
f5264ba8dd bats fixes
insecure parameter no longer supported.  Changed bats test to use http:// instead
changed lastSegment to be more flexible and work with different remote formats
2019-06-11 14:47:56 -07:00
Matt Jesuele
decf29f807 dolt/{bats,go}: git dolt errors on unknown commands 2019-06-11 09:59:24 -07:00
Matt Jesuele
eb5d30cf2d dolt/{bats,go}: Better error handling per PR feedback 2019-06-11 09:59:24 -07:00
Matt Jesuele
888ebe309d dolt/{bats,go}: Git-Dolt v0! 2019-06-11 09:59:24 -07:00