PapayaSoft - Phuket web development

You've Ruined Me. All of You.

| Comments

(A message to my colleagues and the broader dev community, in general)

Look at what you people have done to me in two short years.

So, I do a little work on a branch. Change a few files:

1
2
3
4
5
6
7
8
9
10
11
12
13
davidweinraub@copernicus:~/apps/myproject [mybranch*]$ git st
On branch mybranch
Your branch is up-to-date with 'origin/mybranch'

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   app/src/SomeProject/Controller/SomeSubspace/Featured.php
    modified:   app/src/SomeProject/Controller/SomeSubspace/Shows.php
    modified:   app/src/SomeProject/Model/SomeSubspace/Featured.php

no changes added to commit (use "git add" and/or "git commit -a")

Turns out that I only want to commit the two Featured files. So rather than mouse/trackpad, select, copy, paste, I do the following:

1
davidweinraub@copernicus:~/apps/myproject [mybranch*]$ find ./app/src/ -name "*Featured*.php" | xargs git add

which, of course, results in:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
davidweinraub@copernicus:~/apps/myproject [mybranch*]$ git st
On branch mybranch
Your branch is up-to-date with 'origin/mybranch'

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

    modified:   app/src/SomeProject/Controller/SomeSubspace/Featured.php
    modified:   app/src/SomeProject/Model/SomeSubspace/Featured.php

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   app/src/SomeProject/Controller/SomeSubspace/Shows.php

You’ve ruined me. All of you.

And seriously, I can’t thank you enough. Seriously. :D

Comments