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
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
amine
60c6bd360f
bridge: use new repository configuration interface
...
commands/webui: use new repository configuration interface
2019-11-01 22:44:11 +01:00
amine
7f177c4750
repository: add ReadTimestamp methods and improve naming
2019-10-31 19:05:50 +01:00
amine
ab935674a2
repository: config interface and implementation rework
2019-10-31 15:46:09 +01:00
Amine
acfd8ffdd7
Update repository/mock_repo.go
...
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-06-19 18:02:16 +02:00
Amine Hilaly
ee2ca519e6
Changes to Repo.RmConfigs
...
RmConfigs try to remove key/value or section from keyPrefix
2019-06-17 23:33:32 +02:00
Sladyn
2c4c0132bf
Add GetRemotes functionalities
2019-05-29 22:58:01 +02:00
Michael Muré
d564e37b31
repository: add ReadConfigBool and ReadConfigString functions
2019-05-27 21:39:55 +02:00
Michael Muré
71f9290fda
identity: store the times properly
2019-03-01 22:40:27 +01:00
Michael Muré
061e83d4b4
commands: add "bridge rm"
2018-09-24 16:24:38 +02:00
Michael Muré
666586c5b9
repo: add functions to read/write git config
2018-09-24 15:21:34 +02:00
Michael Muré
82eaceffc1
repo: split the Repo interface to avoid abstraction leak in RepoCache
2018-09-21 18:53:37 +02:00
Michael Muré
3605887345
reorganize package for a more idomatic go
2018-09-11 22:14:46 +02:00
Michael Muré
b58812136e
bug: remove use of the too recent %(refname:lstrip=-1) of git
...
fix #24
2018-08-19 13:58:55 +02:00
Michael Muré
e2f4b027c9
termui: implement push/pull
2018-08-12 21:09:30 +02:00
Michael Muré
435be2b693
bug: add a Lamport logical clock to be able to sort bugs by creation time and edit time without having to rely on a timestamp
2018-08-06 20:31:20 +02:00
Michael Muré
6a12373965
more refactoring to have reusable bug action across different UI
2018-07-25 18:01:32 +02:00
Michael Muré
17e2ec8f56
bug: refactor to limit abstraction leak and to have a more reusable code for the UIs
2018-07-23 00:04:46 +02:00
Michael Muré
25fb88d749
fix dependencies
2018-07-19 13:49:26 +02:00
Michael Muré
0180b68cb0
implement pull/merge
2018-07-17 01:52:56 +02:00
Michael Muré
da470993d1
complete the storage/read process + tests (!)
2018-07-14 22:17:37 +02:00
Michael Muré
35d64e4f9e
fix push/pull
2018-07-13 21:51:27 +02:00
Michael Muré
1779a0f3b9
serialize a Bug to git as a blob+tree+commit+ref
2018-07-13 21:21:24 +02:00
Michael Muré
c498674718
add the new bug command with a very primitive bug datastructure
2018-07-12 12:44:46 +02:00
Michael Muré
d044365912
more experiment
2018-07-12 09:55:13 +02:00