cola.views.repo – Repository tree view

class cola.views.repo.RepoDialog(parent=None, update=True)
mode
class cola.views.repo.RepoTreeView(parent=None)

Provides a filesystem-like view of a git repository.

contextMenuEvent(event)
Create a context menu.
current_path()
Return the path for the current item.
difftool()
Signal that we should launch difftool on a path.
difftool_predecessor()
Diff paths against previous versions.
editor()
Signal that we should edit selected paths using an external editor.
item_from_index(model_index)
Return the name item corresponding to the model index.
keyPressEvent(event)

Override keyPressEvent to allow LeftArrow to work on non-directories.

When LeftArrow is pressed on a file entry or an unexpanded directory, then move the current index to the parent directory.

This simplifies navigation using the keyboard. For power-users, we support Vim keybindings ;-P

mousePressEvent(event)
Synchronize the selection on mouse-press.
revert()
Signal that we should revert changes to a path.
selected_modified_paths(selection=None)
Return selected modified paths.
selected_paths()
Return the selected paths.
selected_staged_paths(selection=None)
Return selected staged paths.
selected_tracked_paths(selection=None)
Return selected tracked paths.
selected_unstaged_paths(selection=None)
Return selected unstaged paths.
selectionChanged(old_selection, new_selection)
Override selectionChanged to update available actions.
setModel(model)
Set the concrete QAbstractItemModel instance.
size_columns()
Set the column widths.
stage_selected()
Signal that we should stage selected paths.
sync_selection()
Push selection into the selection model.
unstage_selected()
Signal that we should stage selected paths.
update_actions()
Enable/disable actions.
view_history()
Signal that we should view history for paths.

Previous topic

cola.views.mainwindow – Main window base class

Next topic

cola.views.revselect – Revision Selector

This Page