Timeline for Obtaining a flat list of all blobs in a .git/objects/ folder
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 29, 2022 at 16:50 | comment | added | Constantin Hong |
add | sort . example is find .git/objects/ -type f | sed -e 's/.git\/objects\///' | sed 's/\///' | sort
|
|
Nov 29, 2022 at 16:45 | comment | added | Tryer | Thanks for the explanation. I have tested this command on two machines -- one running WSL and another running native Ubuntu. The output from WSL comes sorted, while the one from Ubuntu does not come sorted. Is there a way to ensure that the flat file output is sorted? | |
Nov 29, 2022 at 16:35 | comment | added | Constantin Hong | I added the a brief explanation | |
Nov 29, 2022 at 16:30 | history | edited | Constantin Hong | CC BY-SA 4.0 |
simple typo and add bold mark to sentence to point solutions.
|
Nov 29, 2022 at 16:24 | history | edited | Constantin Hong | CC BY-SA 4.0 |
add sed command explanation.
|
Nov 29, 2022 at 16:14 | comment | added | Tryer | The second sed command also works just fine. Thanks for the non-git general answer! If you don't mind, could I request you to add a brief explanation of why the sed command works? | |
Nov 29, 2022 at 16:10 | history | answered | Constantin Hong | CC BY-SA 4.0 |