Commit Graph

1758 Commits

Author SHA1 Message Date
Murmele
2394355d30
Appimage support
Merge pull request #579 from Murmele/appimage
2023-11-12 12:51:25 +01:00
Martin Marmsoler
1b74bf7357 Revert "trying to fix qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat"
This reverts commit 0c5035fc4786de4ff17c92849f3d7c04bc6da25d.
2023-11-12 11:57:21 +01:00
Martin Marmsoler
3f2d236692 Revert "add Debugging"
This reverts commit 9bcfefeb08a3347547b00f0351b66fc794c5c5cf.
2023-11-12 11:57:20 +01:00
Martin Marmsoler
f81c01fde6 use release build 2023-11-12 11:57:20 +01:00
Murmele
2326e01928 Debug build 2023-11-12 11:57:19 +01:00
Martin Marmsoler
0e6e1e4cde add Debugging 2023-11-12 11:57:19 +01:00
Martin Marmsoler
34aef5bc7f trying to fix qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat 2023-11-12 11:57:18 +01:00
Martin Marmsoler
52db196c52 cleanup 2023-11-12 11:57:18 +01:00
Martin Marmsoler
ceb597bea1 publish also appimagetool 2023-11-12 11:57:17 +01:00
Martin Marmsoler
a21cf7eeb7 do not publish linux artifacts 2023-11-12 11:57:16 +01:00
Martin Marmsoler
7b82477e32 disable updating over gui 2023-11-12 11:57:16 +01:00
Martin Marmsoler
897f65891c Reason: 2023-11-12 11:57:15 +01:00
Martin Marmsoler
0fd2d5506a instead of ignoring the .git folder at multiple places, ignore it directly when requesting the path, otherwise the settings are stored inconsistently and might lead to an infinity loop in void RecentRepositories::load() 2023-11-12 11:45:58 +01:00
Martin Marmsoler
f07f4ed2e1 add comment 2023-11-12 10:34:33 +01:00
Martin Marmsoler
8374baad73 use also as variable name mGitPath 2023-11-12 10:21:55 +01:00
Yann Salmon
9edf99fbed Update src/conf/RecentRepositories.cpp
Co-authored-by: Murmele <Murmele@users.noreply.github.com>
2023-11-12 10:21:55 +01:00
Yann Salmon
bd09d302b8 typo 2023-11-12 10:21:54 +01:00
Yann Salmon
c985a5d1ce clang-format 2023-11-12 10:21:54 +01:00
Yann Salmon
f53493a7e6 Referring repos with their git-dir instead of their work-tree.
Also sets up display routines to avoid displaying a repo as ".git".
2023-11-12 10:21:53 +01:00
Martin Marmsoler
49d994134b enable updating translations 2023-11-02 23:08:01 +01:00
Murmele
cd952a7683
Merge pull request #655 from Murmele/typo
Fix typo
2023-11-01 16:37:08 +01:00
Murmele
a0dde37606
Fix typo 2023-10-30 21:57:43 +01:00
Murmele
820c0fdb75
Merge pull request #618 from mwerle/feature/clean_build
chore: fix compiler warnings
2023-08-31 14:20:08 +02:00
Michael Werle
6cf922f313 fix: revert removing global textHeightFactorCheckBoxSize
This variable is actually required for Flatpak builds, so revert removing it. But to avoid compiler warnings, guard it with a precompiler check.
2023-08-31 20:34:04 +09:00
Michael Werle
fb9a799fd4 chore: forgot clang-format on recent changes 2023-08-31 09:43:19 +09:00
Michael Werle
6ceaa401e2 question: CommitList - correct variable to use?
The lambda captures `model`, but in the code, `mModel` is used.  Either the capture is superfluous, or the usage is incorrect.
2023-08-31 09:43:18 +09:00
Michael Werle
fd6efb474d chore: fix more warnings.
Temporarily enabled `-Wall` and fixed more warnings, but there are several uninitialized variables usages which may require review by the code author in order to ensure the refactor is correct so we leave these additional warnings disabled for now.

Fixed:
* removed unused lambda captures
* removed unused variables
* fixed sign comparisons between variables
2023-08-31 09:43:18 +09:00
Michael Werle
39539746e5 chore(compiler warnings): replace -Wswitch-enum with -Wswitch and fix remaining issues.
Moved the `throw` statements introduced in an earlier commit to after the `switch` statement and removed the `default` which could mask an unhandled case.

Changed some situations where every enum item was listed, but fell through to a default action by replacing the explicitly enumerated items with a `default`. This was primarily where the enum was defined in an external library.
2023-08-31 09:43:17 +09:00
Martin Marmsoler
98eb73bc15 enable -Werror=switch-enum 2023-08-31 09:43:17 +09:00
Michael Werle
ea56be203f doc: update README - contributing
Added a note to the `Contributing` section to invoke `cl-format.sh` and
to run the tests prior to creating any PR.
2023-08-31 09:43:16 +09:00
Michael Werle
16276638df build: add configuration for pre-commit hook
Adding a configuration to invoke clang-format v13 on all modified files
as part of the commit process, and a new script file `setup-env.sh` to
manage installing the pre-commit hook.

The hook is installed using a local python venv to ensure the correct
version of clang-format is used. This approach also enables the hook to
be installed on any platform which supports python although the setup
script is limited to platforms which support bash.
2023-08-31 09:43:16 +09:00
Michael Werle
d729e630c3 chore: revert formatting changes of Setting.cpp
We used v14 of clang-format in commit 2dfb5a483e2a3518cd0bb40f39a05915253d88b6 which introduced unwanted changes. Revert to the formatting enforced by v13 of clang-format.
2023-08-31 09:43:15 +09:00
Micha WERLE
3ffdbac1da chore: clang-format recently modified files. 2023-08-31 09:43:14 +09:00
Micha WERLE
97accfa49b refactor: re-add support compiling with QT < 5.14
The refactor to remove deprecated symbols also broke compatibility with versions of QT prior to QT5.14.  This commit adds back support for earlier versions of QT. Mostly this is via the new "qtsupport.h" header file, but for supporting the changed `QSet` constructor we had to put the changes into each source file. This is, of course, not optimal.
2023-08-31 09:43:14 +09:00
Micha WERLE
e21bea8d15 chore: fix compiler warnings
* add default to switch statements throwing an exception on unhandled
  case. This removes `control reaches end of non-void function` in many
  functions.
* fix QT5.14 deprecations, which will also make it easier to move to QT6
  - fix QSet initialization
  - rename `endl` -> `Qt::endl`
  - rename `QString::SkipEmptyParts` -> `Qt::SkipEmptyParts`
  - and more...
* Scintilla editor 
  - add missing `override`
  - replace deprecated functions
* Settings
  - fix deprecated QDir assignment
  - code-style: replace assignment with initializers (to match QDir in this file)
2023-08-31 09:43:13 +09:00
Murmele
e6b5f83d68
Merge pull request #621 from mwerle/feature/rename_branch_menu
Feature/rename branch menu
2023-08-30 09:05:47 +02:00
Michael Werle
4ef8b60aca docs: update changelog with rename-branch work. 2023-08-30 07:30:01 +09:00
Michael Werle
f71f73c3b7 chore: source code formatting
Revert incorrect formatting changes due to use of clang-format v14 in
6ed70b2745c4919e047d4731f8573fc573bb15c5.
2023-08-30 07:27:55 +09:00
Michael Werle
6185b8442d build: update cl-format.sh to force v13 of clang-format
The script was designed to find the latest version of clang-format, however, this project currently specifically requires the use of v13. We now only check for v13 of clang-format.

Secondly, for cmake-format the script also requires a specific version. Instead of installing that unmanaged version globally we now install it inside a python venv.
2023-08-30 07:27:55 +09:00
Micha WERLE
42baad6dfe chore: clang-format recently modified files.
TODO: add clang-format as a pre-commit and/or pre-push git hook
2023-08-30 07:27:55 +09:00
Michael Werle
8745c3c5c9 chore: fix copyright information in the RenameBranchDialog file comments
Fix the copyright information in the files authored by myself.
2023-08-30 07:27:55 +09:00
Michael Werle
7721dd28c3 refactor(CommitList): move duplicated code generating menu entries into a function. 2023-08-30 07:27:55 +09:00
Michael Werle
c9aaa86005 refactor: rename submenu entries for Checkout and code clean up
The `Checkout` submenu entries all had "Checkout" as part of their entry; remove it since it's overly verbose.
2023-08-30 07:27:55 +09:00
Michael Werle
baa10ebd7b feat: make Checkout menu multi-level if there are more branches
Similar to `Delete` and `Rename`, create a sub-menu if the list of branches available to checkout is larger.

TODO: Perhaps make the collapsible branches an option?
2023-08-30 07:27:55 +09:00
Micha WERLE
6321d39974 feat: give the Rename Branch dialog a better size.
Ideally I would like the dialog to start with a suitable size based on the current branch name, but not force it to be the minimum. However, I could not find a way to do this.

Secondly, it would be nice if the dialog automatically expanded up to some maximum size as the name gets longer, again, there seems to be no easy way to do this.
2023-08-30 07:27:55 +09:00
Micha WERLE
86dd4cb0db feat: add rename branch to menu bar 2023-08-30 07:27:55 +09:00
Micha WERLE
5f5d5e9f34 feat: improve right-click menu for operations on references.
Instead of having a big list of references which can be deleted or renamed in the main popup menu  we add a sub-menu for each kind of operation if there is more than one reference for an operation.  If there is only a single reference for an operation, it is added directly to the menu as per the previous implementation.

There's a pro/con here:
* pro: best use of menu with easiest operation in the most common scenario (a single reference).
* con: menu dynamically changes depending on the data, which means users can't learn muscle-memory. For that it's best to maintain a constant top-level menu and enable/disable menu items as required. This might also make the code a little cleaner.
2023-08-30 07:27:55 +09:00
Micha WERLE
2769847e6c feat: add a 'Rename Branch' to the right-click context menu in the commit list. 2023-08-30 07:27:55 +09:00
Murmele
cc78ce2baa
Merge pull request #627 from Murmele/RegexAppdataDate
Regex appdata date
2023-08-29 22:18:17 +02:00
Martin Marmsoler
3e544afad5 fix regex 2023-08-29 21:49:53 +02:00