Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Staging mode changes on macOS impossible from "Unstaged Changes" view. #942

Description

@phyllisstein

Description

👋 Hey! I just noticed something interesting when trying to stage a file using the "Stage File" button in the "Unstaged Changes" diff view: when I change the file's mode from 644 to 755, Atom appears to stage the changes to its contents but not the changes to the mode. Right-clicking the file and clicking "Stage" works, and clicking "Stage All" works, but the diff view leaves the file in a half-staged netherworld. git diff from the command line shows the unstaged mode change.

git

Steps to Reproduce

  1. Create a file (e.g., test.js).
  2. Change the file's mode from 644 to 755.
  3. Open the file in the Git package's diff view.
  4. Click "Stage File."

Expected behavior: I would expect the whole file to be staged, including changes to its metadata.

Actual behavior: Only the contents of the file are staged.

Reproduces how often: 100% of the time.

Versions

~ ❯❯❯ atom --version
Atom    : 1.18.0
Electron: 1.3.15
Chrome  : 52.0.2743.82
Node    : 6.5.0

~ ❯❯❯ apm --version
apm  1.18.1
npm  3.10.10
node 6.9.5 x64
python 2.7.13
git 2.13.1

~ ❯❯❯ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.12.5
BuildVersion:	16F73

Additional Information

💖 Thanks for taking a look.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions