This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
tr = log --oneline --graph --decorate | |
trf = log --oneline --graph --decorate --first-parent | |
trs = log --oneline --graph --decorate --show-signature | |
tra = log --oneline --graph --all --decorate | |
traf = log --oneline --graph --all --decorate --first-parent | |
tras = log --oneline --graph --all --decorate --show-signature | |
br = branch | |
brr = branch -r | |
st = status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Takes an array and returns a string of csv in the same format that fputcsv | |
* would; but every one is wrapped rather than just ones that require it | |
* because str_getcsv will still parse itcorrectly | |
* | |
* NOTE: That currently str_getcsv and fgetcsv fail with encaser being any | |
* value other than " this holds for if its encoded with fputcsv as well. | |
* | |
* @param array $fields an array of string values to encode in csv |