Commit graph

10 commits

Author SHA1 Message Date
Ivailo Monev
29f216161e dolphin: implement commits for the git plugin commit dialog
because I like to reference past commits and this feature will make that
a breeze

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-14 11:11:44 +03:00
Ivailo Monev
6669f34b18 dolphin: show the git plugin commit dialog instead of exec()-ing it
theoretically what the dialog shows can go out of sync with this change
but the changes committed will be up-to-date due to the
`git_index_update_all` call once the dialog is finished

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-13 21:50:42 +03:00
Ivailo Monev
ab159471d3 dolphin: show the difference in commit dialog from git plugin
I guess I can show both (see ec94a7cf06):
https://ibb.co/RzYGHk4

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-13 20:33:32 +03:00
Ivailo Monev
c1f988483b dolphin: remove now redundant check in FileViewGitPlugin::getGitError()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 06:19:14 +03:00
Ivailo Monev
185d84fa90 dolphin: drop push and pull actions
libgit2 cannot even fetch from shallow copies.. well, the file status is
more than enough for dolphin - anything else belongs to a dedicated git
repository management tool anyway

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 06:12:54 +03:00
Ivailo Monev
f2a35aba1f dolphin: return GIT_EUSER when dialog was not accepted
otherwise the error claims no callback was set

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 00:04:19 +03:00
Ivailo Monev
75a6f61cf6 dolphin: notify about the changes after add, remove or commit from the git plugin
and because showing the commit action makes no sense when no changes
(add, remove, modify) are done to the repo every time the actions are
requested a check will be done, note that the check may be quite
expensive for large repositories and delay the context menu

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 20:54:05 +03:00
Ivailo Monev
dee2ff1503 dolphin: prettify the git plugin commit message
to match what `git commit` does

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 17:12:38 +03:00
Ivailo Monev
c68f32e086 dolphin: drop all plugins except git and rewrite it
one of the things that the previous implementation was lacking is the
credentials handling, also it was was very slow because it had to spawn
a process

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 03:54:05 +03:00
Ivailo Monev
f68295ea28 generic: move sub-projects from kde-baseapps [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-14 21:56:54 +03:00