Linux Format

Monitor git projects

Do you need a hand keeping all your git repositories up to date? Do you want a visual reminder of the modified, added, renamed, untracked and deleted files in your git working directories? Build a Qt 5 Python 3 GUI application that finds all of your git repositories and displays their status through colours.

The left panel of Figure 1 (see right) shows the locations of all of the git working directories sorted alphabetically. We have selected the git working directory home/js/Development/historyDialog. Notice that its colour is red, which indicates the presence of modified files in the working directory. There are also deleted and untracked files, but the overall status is determined by the presence of modified files. The right panel shows the issues that git reports about individual files in the git working directory. They are colour-coded by importance, where red signifies an important issue, orange signifies a less-important issue and green signifies that git reported no issues.

Our historyDialog directory shown in Figure 1 is not currently used. It could be deleted, but we can also tell to ignore this repository by adding it to the gitStatus.ini file in the same directory.

You’ll build the dialog-based application visually using Qt 5 Designer and then save it

Citiți o mostră, înregistrați-vă pentru a citi în continuare.

Mai multe de la Linux Format

Linux Format2 min cititeTechnology & Engineering
The Right To Repair Movement Gains Steam
Purchasers of recent devices may have noticed how the hardware has been designed to prevent users from upgrading or repairing them. Instead, they have to get them repaired at approved locations, or send the device to the manufacturers for repair. Mor
Linux Format1 min cititeComputers
UBUNTU DOES WAYLAND Rejoice! Ubuntu 21.04 is upon us!
The latest fully open-source media server gets rolled out and deployed, so you can enjoy your music, films and live TV. We take the best open source modelling and rendering tools for a spin, so you can create in 3D without breaking into a sweat. Befo
Linux Format1 min cititeComputers
Ubuntu Working On Windows
Microsoft’s Windows Subsystem for Linux (WSL) is a compatibility layer that enables developers to run a Linux environment (with command-line tools, applications and more) directly from within Windows 10 or Windows server, without having to dual-boot