Stage/Unstage selected lines

Deleted user September 2, 2014

What happened with "Stage/Unstage selected lines" in the branch/commit view?

2 answers

1 accepted

2 votes
Answer accepted
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2014

When you select lines, the "stage/unstage hunk" buttons change into "stage/unstage lines". I take it the "selected" is implied.

I would have preferred separate buttons, especially since you cannot de-select lines without a CTRL+click.

1 vote
KieranA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2014

Hey Roland,

I was the developer who worked on this recently, and sure enough there's a couple of bugs. I've just released 1.6.4 today which means you can actually de-select lines after you've selected them by clicking anywhere off of the diff area itself (where your source code lines are). I also plan to allow deselection when clicking on an already selected line, too.

As Seth has pointed out, we've made the buttons more context aware so it switches 'hunk' with 'lines'. This was in response to the user interface becoming too cluttered, however we're looking at improving this in the future with, perhaps, a configurable user interface.

Cheers

Adrian Price September 8, 2014

I just updated to 1.6.4 today and I don't have Stage/Unstage Hunk/Lines buttons at all. I can't find any way to stage at any finer granularity than per-file, which is a serious step backward in terms of workflow.

Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 8, 2014

So you see the diff, but you don't see the stage/unstage buttons in the top right of each hunk in the diff?

Adrian Price September 8, 2014

Correct. I did some more fiddling around in the UI, and it looks like, for whatever reason, the stage/unstage line/hunk buttons only show up in "Split view staging", not in "Flow staging". The update to 1.6 put me into "Flow staging" automatically - I didn't even realize there was a way to get the old split view back, which I much prefer anyway. Still, this functionality shouldn't be dependent on the view layout of the staged file listing, should it?

KieranA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 8, 2014

Hey Adrian. I think you've hit the bug where when the view is loaded for the first time it won't display the buttons. Click on another file, then click back again and it should display them. This is tracked in JIRA so I'm looking into why this could be happening. Cheers

Adrian Price September 8, 2014

Still no buttons after switching between selected files. I haven't found a way to get them in Flow staging, only in Split view.

Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 8, 2014

Kieran, why don't you post the link to the bug so Adrian can contribute information there? Seems like there is little else the community can provide or benefit from on this.

KieranA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 9, 2014

Yup, sorry about that. I've just created one here as I couldn't find an original as it was probably in comments rather than an issue itself: https://jira.atlassian.com/browse/SRCTREEWIN-2197. Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events