Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • 7
    If the referees wants to, this is obfuscation is easily circumvented: take any non-trivial part of the code (one expressive function name or comment is enough) and drop it into google.
    – NichtJens
    Commented Aug 8, 2019 at 15:37
  • 55
    @NichtJens in the age of arxiv, this often works with paper titles too, and it's ok. The authors just have a responsibility to allow the reviewer to proceed double-blind.
    – usul
    Commented Aug 8, 2019 at 16:05
  • 12
    FWIW, I use this regularly to create a copy of a Git repo without any history at ../repo-name-copy from within that repo: git -C "$(git rev-parse --show-toplevel)" checkout-index --all --prefix="../$(basename "$(git rev-parse --show-toplevel)")-copy/". You may also want to grep -r -e 'Author Name' -e 'Other Author Name' in the resulting directory, and do something like sed -i 's/Jane Doe/Author 1/g;s/Joe Bloggs/Author 2/g' PATH to replace names.
    – l0b0
    Commented Aug 8, 2019 at 22:57
  • 3
    @l0b0 Normally I would use git archive HEAD > filename.zip instead of your complicated command --- what's the advantage of this method? Commented Aug 9, 2019 at 7:21
  • 2
    @FedericoPoloni git rev-parse --show-toplevel gives you the top level directory of the repository, so this command will work when run anywhere within the repository. Other than that, I guess it depends whether you want a copy of the directory structure or an archive.
    – l0b0
    Commented Aug 9, 2019 at 7:28