Skip to content

Remove "Uncomitted Changes" in timeline #145723

Closed

Description

Testing #145461

  1. Open a GH/Azure Repos repository on https://insiders.vscode.dev
  2. Open and file, and open the timeline view
  3. Ensure that both Git and Local History entries are shown
  4. Make a change to the file and save
    • Local History entry is added to the top of the list
    • Local History entry is then moved under "Uncommitted Changes" entry

Activity

  1. IllusionMH commented on Mar 22, 2022

    @IllusionMH
    Contributor

    Just in case: this is not specific to web version and can be reproduced in Desktop as well.

  2. bpasero commented on Mar 22, 2022

    @bpasero
    Contributor

    I think this works as designed: the "Uncommitted Changes" from Git is probably always updating when you save and is more recent than the actual save event.

    Jackson Kearl (@JacksonKearl) would you agree this works as intended?

  3. JacksonKearl commented on Mar 22, 2022

    @JacksonKearl
    Contributor

    Roughly as designed, but could be smoother. Maybe if we had a way to denote at an API level that an event is "current" rather than historical. Or maybe we shouldn't even have the "uncommitted changes" entry now that we have local file history.

  4. added
    polish
    timeline
    on Mar 22, 2022
  5. connor4312 commented on Mar 22, 2022

    @connor4312
    Member

    I agree, I don't think "uncommitted changes" should be a history entry at all. It's not a historical event. You might have uncommitted changes, but itself is not a change like everything else the timeline shows. Perhaps have a "diff" action in the Timeline title instead.

  6. bpasero commented on Mar 23, 2022

    @bpasero
    Contributor

    I really like the idea to not have "Uncommitted Changes" at all. It seems to originate from the git extension:

    const item = new GitTimelineItem('', index ? '~' : 'HEAD', localize('git.timeline.uncommitedChanges', 'Uncommitted Changes'), date.getTime(), 'working', 'git:file:working');

    Especially now that we have local history enabled, there will always be an entry for local history above the last committ, so the information is redundant.

    Lets do this.

  7. changed the title [-]Local History - entry is added to the top, and then moved[/-] [+]Remove "Uncomitted Changes" in timeline[/+] on Mar 23, 2022
  8. added
    verification-needed
    on Mar 23, 2022
  9. added
    unreleased
    on Mar 23, 2022
  10. added
    insiders-released
    and removed
    unreleased
    on Mar 24, 2022
  11. joyceerhl commented on Mar 25, 2022

    @joyceerhl
    Contributor

    Benjamin Pasero (@bpasero) Removed the Uncommitted Changes timeline entries for RemoteHub. I kept the Staged Changes timeline entry though, since that is a historical event and it looks like we also kept those for the git extension.

  12. bpasero commented on Mar 26, 2022

    @bpasero
    Contributor

    Thanks!

  13. maurobalbi commented on Mar 31, 2022

    @maurobalbi

    This change has actually caught me off guard. While I like the idea for the "Local History" in general, It's sometimes too granular and I'd like to view all the changes since the last commit. Imho, the "Uncommited Changes" entry should be shown when "local history" is disabled, or it should be configurable by settings.

  14. bpasero commented on Mar 31, 2022

    @bpasero
    Contributor

    Can you report a new feature request for this?

  15. locked and limited conversation to collaborators on May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

insiders-releasedpolishtimelinetimeline-local-historyverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions