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
Michael Muré
5751cd8f6b
allow to run commands from lower than the root of a git repo
2018-07-26 12:53:31 +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é
49c90eab26
git: fix fetch not working
2018-07-25 18:00:41 +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é
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é
55aef8c387
implement AddComment
2018-07-13 22:53:53 +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é
deff9e0a41
add basic tests for Bug and OperationIterator
2018-07-13 16:48:55 +02:00