Michael Muré
3a819525d7
commands: minor fixes for the webui open with query
...
- go fmt
- add a shorthand
- fix displayed webUI URL in the terminal
2021-03-07 21:44:48 +01:00
Michael Muré
8128bb79b0
repo: close before deleting
2020-12-08 15:09:58 +01:00
Michael Muré
c884d557bf
repo: move bleve there
2020-12-08 14:42:13 +01:00
Michael Muré
71e1303234
repo: simpler clock mutex locking
2020-12-08 13:15:21 +01:00
Michael Muré
be6e653f15
repo: remove the memory-only repo for now
2020-12-08 13:07:53 +01:00
Michael Muré
4ef2c11040
repo: finish RepoStorage move
2020-12-08 13:07:51 +01:00
Michael Muré
bca9ae8274
repo: more work towards RepoStorage
2020-12-05 21:41:10 +01:00
Mark
28adf41af6
Move new RepoStorage interface to GoGitRepo, revert repoTest
2020-12-05 21:41:10 +01:00
Mark
ecf1215ac9
Add RepoStorage interface (for draft PR)
2020-12-05 21:41:09 +01:00
Karl Semich
9f1d0e6f8b
read name from both global and local config
2020-10-30 17:20:19 -04:00
Michael Muré
8a158d1f94
repository: fix edge case in git config read, affecting bridges
2020-10-25 23:35:36 +01:00
Michael Muré
ca4020f4fa
repository: workaround a go-git bug and ensure sorted tree object
2020-10-25 00:24:26 +02:00
Michael Muré
064a96f808
repository: fix incorrect git dir on the git CLI implementation
2020-10-24 22:19:56 +02:00
Michael Muré
5d1fc3ff39
repo: minor cleanup
2020-10-04 20:46:38 +02:00
Michael Muré
1eb1317318
repo: fix missing keyring on the go-git repo
2020-10-04 20:03:44 +02:00
Michael Muré
1a0c86a12d
repo: use go-git in more places, fix push
2020-10-04 19:56:16 +02:00
Michael Muré
db20bc34e5
repo: fallback editor list by looking if the binary exist
2020-09-29 22:00:35 +02:00
Michael Muré
4055495c8b
repo: fix wrong ordering in gogit's ListCommit
2020-09-29 20:43:54 +02:00
Michael Muré
0acb3505ff
repo: implement GetCoreEditor for go-git
2020-09-29 20:43:54 +02:00
Michael Muré
736d0a2f09
repo: more testing for an edge case
2020-09-29 20:42:21 +02:00
Michael Muré
d8b49e025a
repo: ReadTree must accept either a commit or a tree hash
2020-09-29 20:42:21 +02:00
Michael Muré
eb88f0e446
repo: more config related bug fixes
2020-09-29 20:42:21 +02:00
Michael Muré
4f172432b1
repo: fix manu bugs in go-git config
2020-09-29 20:42:21 +02:00
Michael Muré
71b7eb1401
repo: implement local/global/any config everywhere
2020-09-29 20:42:21 +02:00
Michael Muré
c87e9abacf
repo: only use the file backend for the keyring
2020-09-29 20:42:21 +02:00
Michael Muré
aa8055e27e
repo: split mocks into smaller reusable components
2020-09-29 20:42:21 +02:00
Michael Muré
c68be32df4
repo: split Config into 2 smaller interfaces
2020-09-29 20:42:21 +02:00
Michael Muré
9408f1eb0e
repo: test both plain and bare, test clocks
2020-09-29 20:42:21 +02:00
Michael Muré
cedcc2772c
repo: smaller interfaces
2020-09-29 20:42:21 +02:00
Michael Muré
cdfbecf3e2
repo: fix gogit clock path
2020-09-29 20:42:21 +02:00
vince
27e70af236
fix ListCommits implementation
2020-09-29 20:42:21 +02:00
Michael Muré
d4f1d5659b
repo: fix some go-git implementation
2020-09-29 20:42:21 +02:00
vince
e442ed36b3
Add more function implementations
2020-09-29 20:42:21 +02:00
Michael Muré
2bda70316d
repository: more go-git implementation
2020-09-29 20:42:21 +02:00
Michael Muré
9c1087e18d
repository: fix a todo in the gogit repo
2020-09-29 20:42:21 +02:00
Michael Muré
30d1640bf4
repository: some light shuffling of code
2020-09-29 20:42:21 +02:00
Michael Muré
3ecbf8db28
bridge: store credentials in the Keyring instead of the git config
2020-09-29 20:42:21 +02:00
Michael Muré
b127481364
repository: add access to the system keyring, with fallback on a file
2020-09-29 20:42:21 +02:00
Michael Muré
d171e11028
repository: partial impl of a go-git backed Repo
2020-09-29 20:42:20 +02:00
Vincent Tiu
f3304bdc1c
Add functionality to remove bugs from a local repository. ( #423 )
...
Add functionality to remove bugs from a local repository.
This adds a function to remove git references in the repo and another one to remove bugs.
2020-07-09 14:40:44 +02:00
Michael Muré
44096b785f
repo: fix test chocking on randomized element in repo.ListRefs()
2020-07-03 19:05:05 +02:00
Michael Muré
3cf31fc404
repository: merge git.Hash in for one less /util package
2020-07-01 19:39:02 +02:00
Michael Muré
939bcd57b9
repo: more tests
2020-06-27 22:00:15 +02:00
Michael Muré
88ad7e606f
repository: remove tie to Bug, improved and reusable testing
...
- allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code.
- generalize the memory-only and persisted Lamport clocks behind a common interface
- rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily
- test previously untested components with those new tests
Note: one problem found during this endeavor is that `identity.Version` also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.
2020-06-26 19:14:22 +02:00
Simon Walker
e062d9aedf
Supports git config includes
...
I like to have "private" settings in a git include file, and store the
main .gitconfig under version control. I do not want any authentication
keys or tokens (even if encrypted) in version control, so I have by main
.gitconfig include another file which is local and not tracked.
The current implementation calls `git config --global --get-regexp
<keyPrefix>` and for some reason, this command does not follow git
include files.
The changes suggested in this PR add the `--includes` flag to the
command, which then reads any included files.
2020-04-11 23:49:01 +01:00
Michael Muré
eeeb932b71
git: fix GetRemote to not break when there is no remotes
2020-03-01 13:53:12 +01:00
Josh Bialkowski
f15206e7b1
* Fix git config reader can't read values with spaces
...
* Add NewImportWarning for things that aren't exactly errors.
Use this for unhandled changelog events.
* Add NewExportWarning for things that aren't exactly errors.
Use this for un-exportable status changes.
2020-01-04 13:04:15 +01:00
Michael Muré
b92adfcb5f
bridge: huge refactor to accept multiple kind of credentials
2019-12-08 21:28:27 +01:00
Michael Muré
a9b32e6bda
repo: esthetism rename
2019-11-19 00:27:40 +01:00
Michael Muré
e2445edcb9
bridge: various improvement on the global token PR
2019-11-10 14:53:40 +01:00