Commit Graph

1731 Commits

Author SHA1 Message Date
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
Murmele
4a34691855
Use DEV instead of WIP 2023-08-29 17:39:40 +02:00
Martin Marmsoler
09ab8e0ca6 fix regex 2023-08-29 17:31:40 +02:00
Martin Marmsoler
6edac2ccb5 add comment 2023-08-29 15:52:16 +02:00
Martin Marmsoler
ae0dd2133e add changelog 2023-08-29 15:50:29 +02:00
Martin Marmsoler
4591736bee Imlement Dev Version changelog 2023-08-29 15:50:17 +02:00
Murmele
24f52d93f3
Merge pull request #605 from vthg2themax/patch-1
Update README.md
2023-08-23 13:37:31 +02:00
Murmele
4172841c6b
fix script name 2023-08-23 13:05:35 +02:00
Vince Pike
a46dbc9e7c
Rename build.sh to buildUbuntu.sh 2023-08-22 09:22:15 -04:00
Murmele
6efe178748
Merge pull request #613 from mmuman/haiku-port
Haiku port
2023-08-22 14:55:01 +02:00
Murmele
ba9f0288db
Merge pull request #620 from jpwhiting/work/whiting/fixtypo
Fix typo in documentation: Starring not Staring.
2023-08-22 14:54:11 +02:00
Jeremy Whiting
3220038c06 Fix typo in documentation: Starring not Staring.
We aren't staring at our commits, we are adding stars.
2023-08-17 13:01:49 -06:00
François Revol
0de502cb36 Add a naive RepositoryWatcher using QFileSystemWatcher
I didn't feel like writing yet another Haiku version of this,
there's no reason not to use this API which is present since Qt 4.2.

Not tested much but seems to work.
2023-08-07 17:23:27 +02:00
François Revol
87bdaffce3 Haiku doesn't need libdl, but needs libgnu for qsort_r 2023-08-07 14:46:43 +02:00
Vince Pike
daed9bc9c4
Update README.md
Co-authored-by: Murmele <Murmele@users.noreply.github.com>
2023-08-01 06:40:43 -04:00
Vince Pike
8965265399
Update README.md
Co-authored-by: Murmele <Murmele@users.noreply.github.com>
2023-08-01 06:40:26 -04:00
Vince Pike
492213e71b
Update README.md 2023-07-31 08:41:46 -04:00
vthg2themax
5cc97975e8 Forgot to Remove this Part. 2023-07-31 08:37:54 -04:00
vthg2themax
59486dae35 Move Readme Content Pointer To Requested Location 2023-07-31 08:35:16 -04:00
Vince Pike
2929161a30
Update README.md
Co-authored-by: Murmele <Murmele@users.noreply.github.com>
2023-07-29 13:20:51 -04:00
Vince Pike
5188976d60
Update README.md
Create a section to help for new people building this project
2023-07-28 11:12:53 -04:00
Murmele
f77a2be942
Merge pull request #516 from Murmele/OpenSSL1.1.1-stable
Update Openssl
2023-07-21 22:55:02 +02:00
Murmele
74de9145cf
Merge pull request #556 from Murmele/debugMessages
implement debugging output if debug is enabled
2023-07-17 17:46:32 +02:00
Murmele
198fb7a5fd
Update src/app/Application.cpp 2023-07-14 11:50:54 +02:00
Martin Marmsoler
0a935f838a enable debug build by setting a settings
Reason: so the debug possibility is always available and is by default off for performance reason
2023-07-14 11:18:31 +02:00
Murmele
34625fb981
Adds "Hide Untracked Files" option to DoubleTreeWidget
Merge pull request #591 from pablovacatello/hideUntrackedFiles
2023-07-05 09:31:26 +02:00
pablov
b202f1a21e Reverts format changes to test/Settings.cpp 2023-07-04 10:31:49 -03:00
pvacatel
a80ffed278 Fixes code format according to clang-format 2023-07-03 22:36:45 -03:00