Skip to content

Instantly share code, notes, and snippets.

@nemith
Created November 29, 2022 19:26
Show Gist options
  • Save nemith/a141213e602c989c7ce1f4ec91807023 to your computer and use it in GitHub Desktop.
Save nemith/a141213e602c989c7ce1f4ec91807023 to your computer and use it in GitHub Desktop.
$ /opt/homebrew/bin/sl config paths.default
$ /opt/homebrew/bin/sl log -T '{node}' -r 'ancestor(., main)'
$ /opt/homebrew/bin/sl log -r 'max(descendants(.))' -T '{node}'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git rev-list --header '^b3cd6c01e96f7b2a50294d97cb8a60f327cd9875' faa7bc9df57fe920a29b41902e7a940c55224c8e
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git rev-list --header '^b3cd6c01e96f7b2a50294d97cb8a60f327cd9875^@' b3cd6c01e96f7b2a50294d97cb8a60f327cd9875
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git rev-parse '3e3f4c1dbbd23b9a70f815441bbc9d6688844d4b~^{tree}'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git config --get commit.gpgsign
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git commit-tree -p b3cd6c01e96f7b2a50294d97cb8a60f327cd9875 dae37a0b9fecafee09c60547d255659eb9b5ed44
$ /opt/homebrew/bin/sl config paths.default
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git push https://github.com/nemith/testsap.git e9892c275121301d0e6b6d96e6d0c97771bd7e13:refs/heads/gh/nemith/3/head b3cd6c01e96f7b2a50294d97cb8a60f327cd9875:refs/heads/gh/nemith/3/base
To https://github.com/nemith/testsap.git
* [new branch] e9892c275121301d0e6b6d96e6d0c97771bd7e13 -> gh/nemith/3/head
* [new branch] b3cd6c01e96f7b2a50294d97cb8a60f327cd9875 -> gh/nemith/3/base
Opened PR #6
$ /opt/homebrew/bin/sl metaedit -q -T '{nodechanges|json}' -r 3e3f4c1dbbd23b9a70f815441bbc9d6688844d4b -m 'foo
ghstack-source-id: dae37a0b9fecafee09c60547d255659eb9b5ed44
Pull Request resolved: https://github.com/nemith/testsap/pull/6'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git rev-list --header 'e76195eab1f17861ca1973567264bd6d601eeb22^..0cbbbd8bb2b347fd9687efaeb0b8de19bcc2152f'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git rev-parse 'bc8f60f6c18abb2ac87e6683f4db64186844ce88~^{tree}'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git commit-tree -p e9892c275121301d0e6b6d96e6d0c97771bd7e13 defbe41b8836c18ffeaa72c5c748cdd1e0095911
$ /opt/homebrew/bin/sl config paths.default
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git push https://github.com/nemith/testsap.git 308a8b176fbac10bc78669962775a7c24624c4c4:refs/heads/gh/nemith/4/head e9892c275121301d0e6b6d96e6d0c97771bd7e13:refs/heads/gh/nemith/4/base
To https://github.com/nemith/testsap.git
* [new branch] 308a8b176fbac10bc78669962775a7c24624c4c4 -> gh/nemith/4/head
* [new branch] e9892c275121301d0e6b6d96e6d0c97771bd7e13 -> gh/nemith/4/base
Opened PR #7
$ /opt/homebrew/bin/sl metaedit -q -T '{nodechanges|json}' -r bc8f60f6c18abb2ac87e6683f4db64186844ce88 -m 'bar
ghstack-source-id: defbe41b8836c18ffeaa72c5c748cdd1e0095911
Pull Request resolved: https://github.com/nemith/testsap/pull/7'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git rev-list --header 'e919dbdd4abefa17c6d6da7248e76ecb804670bc^..c82b46f40215f7e0a524b70187b14cdec5aec87e'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git rev-parse '1ba28b97cfc8ac6fe6e4e6aa6fb1c3ae047e6f13~^{tree}'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git commit-tree -p 308a8b176fbac10bc78669962775a7c24624c4c4 63789fac9a35f48332930d8af207b9e5e34b0ff6
$ /opt/homebrew/bin/sl config paths.default
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git push https://github.com/nemith/testsap.git 60ef805cb73535c1fc3a91869ba02fccc64be051:refs/heads/gh/nemith/5/head 308a8b176fbac10bc78669962775a7c24624c4c4:refs/heads/gh/nemith/5/base
To https://github.com/nemith/testsap.git
* [new branch] 60ef805cb73535c1fc3a91869ba02fccc64be051 -> gh/nemith/5/head
* [new branch] 308a8b176fbac10bc78669962775a7c24624c4c4 -> gh/nemith/5/base
Opened PR #8
$ /opt/homebrew/bin/sl metaedit -q -T '{nodechanges|json}' -r 1ba28b97cfc8ac6fe6e4e6aa6fb1c3ae047e6f13 -m 'quux
ghstack-source-id: 63789fac9a35f48332930d8af207b9e5e34b0ff6
Pull Request resolved: https://github.com/nemith/testsap/pull/8'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git rev-list --header '8c2719dfe942b7e79f78c7ba5664f2a082e933ee^..3d7493ac6cc114911b4ad58ddbddff721283673a'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git rev-parse '3d7493ac6cc114911b4ad58ddbddff721283673a~^{tree}'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git commit-tree -p 60ef805cb73535c1fc3a91869ba02fccc64be051 e1f50ed2aa69f8bd4dc587c3c65b70a83429dddc
$ /opt/homebrew/bin/sl config paths.default
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git push https://github.com/nemith/testsap.git 94f287f3ae78a841a978e3bb6d1f02f66aabffa5:refs/heads/gh/nemith/6/head 60ef805cb73535c1fc3a91869ba02fccc64be051:refs/heads/gh/nemith/6/base
To https://github.com/nemith/testsap.git
* [new branch] 94f287f3ae78a841a978e3bb6d1f02f66aabffa5 -> gh/nemith/6/head
* [new branch] 60ef805cb73535c1fc3a91869ba02fccc64be051 -> gh/nemith/6/base
Opened PR #9
$ /opt/homebrew/bin/sl metaedit -q -T '{nodechanges|json}' -r 3d7493ac6cc114911b4ad58ddbddff721283673a -m 'spam
ghstack-source-id: e1f50ed2aa69f8bd4dc587c3c65b70a83429dddc
Pull Request resolved: https://github.com/nemith/testsap/pull/9'
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git rev-list --header '4e704e7f0fa5a4fc0a7f0a67c3ad284d378349c0^..4e704e7f0fa5a4fc0a7f0a67c3ad284d378349c0'
# Updating https://github.com/nemith/testsap/pull/6
# Updating https://github.com/nemith/testsap/pull/7
# Updating https://github.com/nemith/testsap/pull/8
# Updating https://github.com/nemith/testsap/pull/9
$ /opt/homebrew/bin/sl config paths.default
$ git --git-dir /Users/brandonbennett/Code/testsap/.sl/store/git push https://github.com/nemith/testsap.git --force e76195eab1f17861ca1973567264bd6d601eeb22:refs/heads/gh/nemith/3/orig e919dbdd4abefa17c6d6da7248e76ecb804670bc:refs/heads/gh/nemith/4/orig 8c2719dfe942b7e79f78c7ba5664f2a082e933ee:refs/heads/gh/nemith/5/orig 4e704e7f0fa5a4fc0a7f0a67c3ad284d378349c0:refs/heads/gh/nemith/6/orig
To https://github.com/nemith/testsap.git
* [new branch] e76195eab1f17861ca1973567264bd6d601eeb22 -> gh/nemith/3/orig
* [new branch] e919dbdd4abefa17c6d6da7248e76ecb804670bc -> gh/nemith/4/orig
* [new branch] 8c2719dfe942b7e79f78c7ba5664f2a082e933ee -> gh/nemith/5/orig
* [new branch] 4e704e7f0fa5a4fc0a7f0a67c3ad284d378349c0 -> gh/nemith/6/orig
# Summary of changes (ghstack 0.6.0.sapling)
- Created https://github.com/nemith/testsap/pull/9
- Created https://github.com/nemith/testsap/pull/8
- Created https://github.com/nemith/testsap/pull/7
- Created https://github.com/nemith/testsap/pull/6
Facebook employees can import your changes by running
(on a Facebook machine):
ghimport -s https://github.com/nemith/testsap/pull/9
If you want to work on this diff stack on another machine:
ghstack checkout https://github.com/nemith/testsap/pull/9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment