Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gnome-builder gnome-builder
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 164
    • Issues 164
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gnome-buildergnome-builder
  • Issues
  • #1594

Make the todo side panel only show TODOs/FIXMEs for lines that differ from the parent branch

While it's nice to see all the TODOs in a project, the list can be big for projects that existed for a bit. I don't think it's useful to see all TODOs in a project, unless you're really chasing all of them to fix them. It's more useful to see the list of FIXME/TODO that I added while writing code, as reminders for things that need to be addressed before submitting/merging the corresponding MR.

As such, I wonder if it would be possible to have a (enabled by default) checkbox that determines whether TODOs should only be searched within lines which were changed with regard to the parent branch (or just the lines that changed with regard to the last commit). It seems like git grep doesn't provide this feature by default, and although there's git diff -G <regex> -U0 that shows the chunks that have a line matching the regex, the line number and filename aren't prefixed to the lines like it is for git grep (it's only with the

--- a/data/org.gnome.epiphany.gschema.xml
+++ b/data/org.gnome.epiphany.gschema.xml
@@ -23,15 +23,30 @@

notation), and the whole chunk is included in the output, not just the matching line. So it would require on the Builder code's side than with a plain git grep, but I think it's worth is as currently the TODO panel is useless to me because it shows all TODOs, not just the ones I added.

Assignee
Assign to
Time tracking