Michael Muré
5c4e7de012
repository: partially add two new functions to RepoData
2021-02-14 12:18:59 +01:00
Michael Muré
fb0c5fd061
repo: expose all lamport clocks, move clocks in their own folder
2021-02-14 12:15:41 +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é
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
Michael Muré
064a96f808
repository: fix incorrect git dir on the git CLI implementation
2020-10-24 22:19:56 +02:00
Michael Muré
71b7eb1401
repo: implement local/global/any config everywhere
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
Michael Muré
b127481364
repository: add access to the system keyring, with fallback on a file
2020-09-29 20:42:21 +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é
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
Michael Muré
eeeb932b71
git: fix GetRemote to not break when there is no remotes
2020-03-01 13:53:12 +01:00
Michael Muré
a9b32e6bda
repo: esthetism rename
2019-11-19 00:27:40 +01:00
Amine
3433fa5def
commands: use token value as identifier
2019-11-09 13:25:07 +01:00
amine
b85b2c57a7
repository: improve documentation and fix typo mistake
2019-11-01 21:47:34 +01:00
amine
104224c9f0
repository: add StoreTimestamp/StoreBool to the config interface
...
repository: move the gitVersion logic to *gitConfig struct
2019-11-01 18:39:45 +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
Michael Muré
2b14bb253c
Merge pull request #205 from seeduvax/issue-178
...
issue 178: fetch the repo dir with rev-parse --git-dir
2019-08-31 13:23:26 +02:00
Sebastien Devaux
1dc106279a
issue 178: refined git command cwd setting.
...
For unknown reason setting .git as current directory for the called
git command fails when git-bug is called from a git hook (and it was
observed only in this case). Forcing use of current dir when the
repo path is ".git" restore the expected behavior.
2019-08-28 21:11:29 +02:00
Sebastien Devaux
ddcbd8d022
issue 178: adding required changes to InitGitRepo and CleanupTestRepos
2019-08-27 21:35:04 +02:00
Sebastien Devaux
7e123fbfca
issue 178: fetch the repo dir with rev-parse --git-dir
...
Since is returns the .git dir directly, it is not more needed to
concatenate .git.
2019-08-24 22:42:25 +02:00
Michael Muré
91e4a183bd
repo: fix git version parsing with broken version
2019-08-24 15:32:11 +02:00
Amine Hilaly
fb50d47048
repository: RmConfigs usage of git version lt 2.18
2019-07-08 23:57:19 +02:00
Michael Muré
76db2f42eb
repository: rework how RmConfigs works with git
2019-07-08 12:14:41 +02:00
Amine Hilaly
bb68b391a0
Check git version before removing config section
...
update git config tests
2019-07-07 13:57:15 +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é
839b241f0c
git: fix RmConfigs
2019-03-01 22:40:29 +01:00
Michael Muré
71f9290fda
identity: store the times properly
2019-03-01 22:40:27 +01:00
Michael Muré
d2483d83dd
identity: I can compile again !!
2019-03-01 22:40:24 +01:00
Michael Muré
96f514168f
repo: minor cleaning
2018-12-25 16:35:37 +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é
c3a5213f82
repo: more documentation
2018-09-24 12:46:39 +02:00
Michael Muré
8a03853869
repo: workaround for git returning no path when inside a .git dir
2018-09-21 11:57:45 +02:00
Michael Muré
bf11c08f5a
lamport: better perf by ensuring that the folder is created only once
2018-09-13 16:05:27 +02:00
Michael Muré
3605887345
reorganize package for a more idomatic go
2018-09-11 22:14:46 +02:00
Michael Muré
30d4bc2121
fix english grammar
2018-09-09 20:17:12 +02:00
Michael Muré
f136bf6a82
cmds: various cleaning
2018-09-06 21:42:05 +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é
df144e727a
fix some linting trouble
2018-08-13 15:28:47 +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é
e5a6a71b78
graphql: implement the missing mutations
2018-08-01 21:57:12 +02:00