-
Notifications
You must be signed in to change notification settings - Fork 343
Improve ignored files support in filebrowser #1200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -822,6 +822,10 @@ async def post(self, path: str = ""): | |||||||||||||||||||
self.set_status(500) | ||||||||||||||||||||
self.finish(json.dumps(body)) | ||||||||||||||||||||
|
||||||||||||||||||||
@tornado.web.authenticated | ||||||||||||||||||||
def check_ignore(self, path): | ||||||||||||||||||||
self.git.check_ignore(self, path) | ||||||||||||||||||||
Comment on lines
+826
to
+827
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here you want this method to be executed on an
Suggested change
|
||||||||||||||||||||
|
||||||||||||||||||||
|
||||||||||||||||||||
class GitSettingsHandler(GitHandler): | ||||||||||||||||||||
@tornado.web.authenticated | ||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -80,6 +80,13 @@ export class GitExtension implements IGitExtension { | |||||||||||||||||||||
} | ||||||||||||||||||||||
} | ||||||||||||||||||||||
|
||||||||||||||||||||||
/** | ||||||||||||||||||||||
* Requests the new GET endpoint. | ||||||||||||||||||||||
*/ | ||||||||||||||||||||||
get isIgnored(): Git.IBranch { | ||||||||||||||||||||||
return; | ||||||||||||||||||||||
} | ||||||||||||||||||||||
Comment on lines
+86
to
+88
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then to call the backend with the proper argument, you will need something like that
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
/** | ||||||||||||||||||||||
* Branch list for the current repository. | ||||||||||||||||||||||
*/ | ||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What you would like to do is to execute the git
check-ignore
command in the repository to know if it is ignored or not. Something like this should do: