You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the file browser context menu, it is possible to request the file Git history through the submenu Git -> History. Unfortunately that entry is displayed for all files including those ignored by Git. It will be nice to know if a file is ignored to avoid displaying that entry for them.
in git.py#Git, add a new method check_ignore that execute git check-ignore -z <path> and parse the result to return the list of ignored files; changed_files method is a good example of a similar method.
in handlers.py#GitIgnoreHandler, add a get method that calls the new Git.check_ignore.
in the frontend:
in model.ts#GitExtension, add a isIgnored(path) method that will request the new GET endpoint.
in commandsAndMenu.tsx#addFileBrowserContextMenu,
we need to remove from the items = toArray(filebrowser.selectedItems()) the ignored files; I let you look at the code to figure out how to achieve that.
In the file browser context menu, it is possible to request the file Git history through the submenu Git -> History. Unfortunately that entry is displayed for all files including those ignored by Git. It will be nice to know if a file is ignored to avoid displaying that entry for them.
Originally posted by @navn-r in #980 (comment)
The text was updated successfully, but these errors were encountered: