Skip to content

Git commit#169

Merged
diegoiast merged 22 commits intomainfrom
git-commit
Feb 14, 2026
Merged

Git commit#169
diegoiast merged 22 commits intomainfrom
git-commit

Conversation

@diegoiast
Copy link
Collaborator

This PR adds ability to commit within the IDE. I have been using it locally - so the basics are on. I am working on usability and cleanups.

@diegoiast diegoiast self-assigned this Feb 10, 2026
@diegoiast diegoiast added the git label Feb 10, 2026
@diegoiast diegoiast moved this from Backlog to In progress in CodePointer IDE Feb 12, 2026
@diegoiast diegoiast marked this pull request as ready for review February 14, 2026 19:16
We have a list of modified files, and basic layout. Next step is
displaying the diff of current file - then link the preview with content
of file.
When selected - a file, the diff of that file is displayed. We use the
Qutepart, same as the main editor. That editor also shows the syntax of
diff.

I should use the text editor plugin to create the editor. This way the
settings would follow, and double click would work (open the correct
file).
I can revert a single item, and multiple is coded, but not tested yet.
1) When running git - return also the exit code.
2) (fix code compilation)
3) If on revert this fails - do not update file list.
4) Handle revert of single, and multiple file.
If you open a commit window, it will get restored when the app restarts.
There are some regressions on finding the repo root.
When the commit form now queries the text editor plugin, and
creates the mdi editor from it.

Now the settings of the editors, will be used for the diff viewer.

Problems:
 - Clicking a diff, does not open the corresponding file.
I just needed to setup the mdi host on the editor.
The revert comand asks for confirmation.
I tested a simple commit on a dummy project, all seems to work.
Original code used ranges, which is not properly supported on Ubuntu 24.04.
Use older code, which IMHO event looks nicer.
At some point I messed up logs of file and project. Fix is easy, just
use the full filename. Git will do the correct thing.
If this is a new (or deleted) file - try to display it (if its text).
Honor the highlighter of said file.

Implementation is not ideal, as we brake abstractions. FIXME is in some
places.
I keept seeing on the build console:

```
Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting
to 'layoutWidget2'.
```

Each time I create a layout, QtDesigner would host it inside a QWidget,
which is not visible in the UI. The solution is to edit the XML by hand.
Now those logs are gone.
Seems like all git commit forms are in monospaced font.
Lets fix this. In a future iteration will need to do
more cleanups - and use an editor with markdown style (?)
or something more dedicated.

I know that for example, the first line should not be
more than 75 chars (that is what is the linux kernel use).

(also - commit message is not saved in state, but this is another problem I will tackle later on)
@diegoiast diegoiast merged commit 66c74dc into main Feb 14, 2026
8 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in CodePointer IDE Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant