Comments (5)
The "Stage All Untracked" action is only staging new (untracked) files, as originally intended. I just added a new "Stage Changed Files To Commit" action to handle staging just modified files. That new action should do what you're describing.
Just one more thing: I would suggest to call the new operation "Stage All Modified" instead of "Stage Changed Files To Commit" because
- it follows the pattern of "Stage All Untracked" making it easier to comprehend,
- in the GUI, the files affected by the operation are listed under the title "Modified" as shown in the attached picture.
from git-cola.
Thanks for the heads-up! I'll get this patched shortly (before the next upcoming release).
from git-cola.
Interestingly, I wasn't able to reproduce this behavior.
The "Stage All Untracked" action is only staging new (untracked) files, as originally intended. I just added a new "Stage Changed Files To Commit" action to handle staging just modified files. That new action should do what you're describing.
I'm kinda surprised that you're seeing different behavior. Here's where the two commands are registered. They're definitely hooked up to the correct commands at this level:
git-cola/cola/widgets/toolbarcmds.py
Lines 180 to 189 in a290ba5
Let me know if the latest version behaves differently. In theory it shouldn't, but we'll see. Thanks for the heads-up.
from git-cola.
You are right, it's a bit more complicated, after some experiments I can report this:
I have in the [gui] section of the git config file this:
displayuntracked = false
When I comment this out, then git-cola shows the untrackeds, and the "Stage All Untracked" stages exactly the untrackeds, the modified ones are left in place.
However, when I put back that line in the config, I get back the behavior that I originally reported.
from git-cola.
Alrighty, that totally explained it. Thanks for the tip about gui.displayuntracked
. That setting caused the tool to go into a fallback code path that stages all files (because the list of files to stage will always be empty), which is obviously something we don't want to do.
This has been corrected.
from git-cola.
Related Issues (20)
- dev: replace use of "pylint" with "ruff" HOT 11
- Checkout branch dropdown re-drops after selcting branch HOT 1
- unintuitive context menu option(s) HOT 2
- Suppress "Remote Messages" Popups HOT 2
- documentation request: can the Linux installation instructions be improved? HOT 1
- Request: A tar release HOT 2
- The title bar (or something else) should show the name of the file currently selected HOT 1
- How does cola start on Windows? HOT 3
- the commit button randomly becomes blank HOT 6
- sometimes not all files are staged or reverted HOT 5
- Version 4.5.0 Wont start after update HOT 6
- Flatpak install: cannot access pre-commit hooks or launch editor HOT 3
- Git-cola crashes when no commit.template is defined HOT 1
- `git-sequence-editor` invoked with wrong path on Windows HOT 10
- git-cola died of signal 11 HOT 9
- Mac Cmd+M (minimize window) is ignored by git-cola and has different action HOT 1
- Commit message input box pre-filled at startup HOT 2
- Ignoring a file locally fails if within a worktree HOT 2
- Programmatically change the UI theme? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-cola.