Commit graph

12 commits

Author SHA1 Message Date
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
88b96ed9ae dolphin: experimental merge for git plugin
comes with the usual "WITHOUT ANY WARRANTY" (see the copyright)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 03:17:23 +03:00
Ivailo Monev
c25675fafc dolphin: use git_repository_head() to get the repository head
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-12 00:26:33 +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
db61f4bf93 dolphin: partially implement pull action for git plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 23:23:23 +03:00
Ivailo Monev
49b17d2e46 dolphin: do not include ignored and untracked files in the status
if not added, changed or removed files are not to be committed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 23:22:58 +03:00
Ivailo Monev
c6e66748aa dolphin: link the git plugin to kio library
for the KDirNotify reference

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 21:04:38 +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
ad707fe53c dolphin: temporary disable the git plugin pull action
the code for the implementation is actually the same as in
FileViewGitPlugin::slotPush() except the git_remote_push() call (and
obviously the information messages stating that pull is being done)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-11 06:03:54 +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