Jun
29
revised Any way in git, to add all files with only whitespace changes to staging?
deleted 45 characters in body
Jun
24
revised Any way in git, to add all files with only whitespace changes to staging?
added 34 characters in body
Jun
24
comment Any way in git, to add all files with only whitespace changes to staging?
Your solution uses bash scripting to achieve staging files with only whitespace changes, mine uses Python. I kinda thought, and am looking for an option like git add -A with a filter, git add -AW, "Add all with whitespace changes only.".
Jun
24
comment Any way in git, to add all files with only whitespace changes to staging?
Yep, upvoted that now, and I've added my own solution in Python. I won't mark either as correct, as the question is about doing it with git directly, not via scripting.
Jun
24
answered Any way in git, to add all files with only whitespace changes to staging?
Jun
24
comment Any way in git, to add all files with only whitespace changes to staging?
Yeah, I'm bringing in external source (Amazon's mobile Unity SDK) manually and there is where the whitespace changes are coming from.
Jun
24
comment Any way in git, to add all files with only whitespace changes to staging?
Hmmm, so that's ignoring whitespace, similar to the git diff -w option, but that still doesn't give me any solution to stage those files, which is what I'd like to do. I also understand about the ignoring file endings, but again, that's not what I want to do either. I want to stage all files that have just whitespace changes, that are safe to commit, to be then left with a dirty workspace that has all the other changes for me to review.
Jun
24
comment Operate on all matches of Python's re.split / similar builtin on a single pass
Just an fyi, as with the other lines, while this is one-line, I've removed that from my question as that wasn't the important part, the important part was one-pass, which is why I haven't accepted any answer as correct. All are currently two-pass solutions.
Jun
24
asked Any way in git, to add all files with only whitespace changes to staging?
Jun
24
comment Operate on all matches of Python's re.split / similar builtin on a single pass
@TimCastelijns, the title is operating on all outputs from the re.split, not just extracting the ints, that's a separate issue. I want, if possible, a mixed type list returned, not a list of strings, not a list just of the ints, as I said like, ['level', 1, '-', 4, 'car', 10, '']. I've also already clarified why it's different to the other answer, and that I'm looking for a single pass. All the answers are two pass, which isn't what I'm asking about. I don't think it's actually possible, but that shouldn't mean I accept one of the answers.
Jun
23
comment Operate on all matches of Python's re.split / similar builtin on a single pass
This is two pass, if possible, I'm looking for a one pass solution, where the items are operated on as they're matched, rather than the whole returned list.
Jun
23
comment Operate on all matches of Python's re.split / similar builtin on a single pass
I know map alright, but (I have now edited the title to specify this) this, unless I'm mistaken is two pass. There are a million and one options to that, what I'm specifically looking to do is a one-pass solution. Operate on the items as they're matched, instead of operating on the returned list.
Jun
23
revised Operate on all matches of Python's re.split / similar builtin on a single pass
specified "single pass" in question title, and added explanation detailing differences to other questions.
Jun
23
comment Operate on all matches of Python's re.split / similar builtin on a single pass
I found that was the easiest way to split the string and end up with what closest to what I wanted first pass. I'm more than happy to be corrected and pointed away from re.split.
Jun
23
asked Operate on all matches of Python's re.split / similar builtin on a single pass
Jun
12
accepted Unity3D WWW call on main thread on iOS
Jun
12
comment Unity3D WWW call on main thread on iOS
Yeah, I've added the response from the Unity iOS devs. While this is a limitation of the platform in this instance, there's still got to be a way to fire WWW requests during the suspend flow, from a OnApplicationPause(true) call. In the simplest form at the moment, your response is correct, and I'll mark it as such, but hopefully Unity fix the bug / allow a way to do this on iOS, and I'll add that method as an answer then.
Jun
12
comment Unity3D WWW call on main thread on iOS
It's a better answer alright, but you clearly didn't read the question, "because if we put this behind a StartCoroutine, it's not properly on the main thread, and on suspend, what's happening gets pushed to when the app resumes (which completely defeats the purpose of what we're trying to do).". Nor did you read the title, talking about it being on iOS.
Jun
12
revised Unity3D WWW call on main thread on iOS
added Unity's response with accepting it as a bug on iOS and request to submit a bug report.
Jun
12
awarded Citizen Patrol
1 2 3 4 5