msysgit - Add variables to git status output -


How to treat each path as a variable I can modify the GIT status output which I use to use other commands Can i do to

Example:

$ git status # Branch Master # has not been modified for # commitments: # ("git add" file to update) & #; {#} Modified # # {1} has been modified: path / per / some / file.txt # {2} has been modified: to discard changes to path / working directory " GIT checkout - use & lt; file & gt; ...) / some / other / file.txt # {3} has been modified: some / true / long / path / copy / some / file Txt $ git {2} $ git position # To change the # branch master # #: # (Use # git reset head & lt; file & gt; ...) # Modified: path / to / some / other / file.txt # # of changes Not committed to: # (Use "git add & lt; file & gt" to cancel the change in working directory #; {1}) # # {1} Modified: path / per / Some / File modified Txt # {2}: Some / true / long / path / per / some / file.tx T

This can be very useful when too many files or files Work with the MB file path. I suspect that this is very difficult (or impossible) to do?

It looks like < Update mode

From git add --interactive

update

indicates the status information and " Update >> gt;> "indicates the problem of the prompt.
When prompted double & gt; & Gt; , you can select more than one, combined with white space or a comma.
Apart from this you can say that the ranges. To select 2,3,4,5,7,9 from the list like " 2-5 7,9 " If the second number is omitted in a category, the remaining patch is taken. Like 7,89 from the " 7 - " list you can ask to choose everything.

Highlighted with * after which you have selected, such as:

  unstaged path 1: binary something No foo.png * 2: + 403 / -35 + 1 / -1 git-add - interactive.perl    

Comments