question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inform user that selecting individual lines to commit isn't possible.

See original GitHub issue

Describe the feature or problem you’d like to solve

Enabling Hide Whitespace Changes prevents you from selecting individual lines to commit. There is information about this in the UI where the feature is enabled, but that is not enough in my opinion. There is a big chance you don’t remember that little piece of information, and also there is no indicator that Hide Whitespace Changes is enabled.

Proposed solution

Show a popup or similar (with a Sorry, you can't select individual lines while Hide Whitespace Changes is enabled. message) when trying to select individual lines & hide whitespace is enabled.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
say25commented, Sep 23, 2021

Sorry guys this is my fault, I mean even more ideally we’d find a way to make single select work with hide whitespace on or off but alas its something rather hard to solve

3reactions
sergiou87commented, Oct 6, 2021

Hello! 👋

We just released version 2.9.4 which includes an improvement @niik beautifully crafted for this 😍  We hope it makes this scenario much clearer now! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow commiting only specific lines : IDEA-186988 - YouTrack
Well yes, but actually no. Yes you can select the lines to commit, but actually you can't split chunks of these lines. If...
Read more >
Commit only part of a file's changes in Git - Stack Overflow
1. Hunk wise: Select the file from unstagged Changes section; Right click chunk of code which needs to be staged; Select Stage Hunk...
Read more >
lock the file/line selection controls while a commit is running
In a project with a slow pre-commit hook, do a partial commit (just select certain files and/or lines, and then click Commit) ·...
Read more >
Is it possible to commit individual source lines in git from ...
All source control software works on files, not lines (internally they will extract the lines that have changed and store them).
Read more >
git-commit Documentation - Git
Construct a commit message for use with rebase --autosquash . The commit message subject line is taken from the specified commit with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found