Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #111480

Re: Were is a great place to Share your finished projects?

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Were is a great place to Share your finished projects?
Date 2016-07-16 02:12 +1000
Message-ID <mailman.22.1468599145.2307.python-list@python.org> (permalink)
References (7 earlier) <d2be9f36-159c-4ba7-a23e-16e22006e04f@googlegroups.com> <ddae5ed4-9020-4405-9256-9244a60d65b5@googlegroups.com> <578830ac$0$1621$c3e8da3$5496439d@news.astraweb.com> <20160715153902.GA3587@test-chamber-1.castopulence.org> <CAPTjJmqOX=OOxUWxLTzEbVNc2S_OwYN19v_E6MVO6EOHLKNRKA@mail.gmail.com>

Show all headers | View raw


On Sat, Jul 16, 2016 at 1:39 AM, Brandon McCaig <bamccaig@gmail.com> wrote:
> [regarding Mercurial]
> Combined with their failure to accomodate the distributed
> development model properly you now have a bunch of incompatible
> ideas for managing branches and history editing and they still
> haven't gotten it all right yet (but they're getting closer the
> more and more they model the design after Git).

I've never managed to get Mercurial's branching system into my head
(and then you have the people saying "don't use hg branches at all,
just use named tags" or somesuch), but the git branching system is
extremely simple. In fact, all of git is very simple. To anyone who is
having trouble with comprehending git, I strongly recommend this
video. It assumes you have a basic understanding of git commands (or
can pause the video and look up a git-hg Rosetta Stone), but you don't
need expert-level knowledge. In fact, it's aimed at people ages 4 and
up...

https://www.youtube.com/watch?v=1ffBJ4sVUb4

>> To give you an idea of how screwed up things are, even though I'm not one of
>> the developer team, and have never pushed a thing into the code
>> repositories (I have pushed into documentation repos), somehow according
>> to "git blame" I'm responsible for a bunch of code.
>
> The user name and email fields are not controlled in either Git
> or Mercurial so anybody can commit code under your name without
> you being involved. That would be pretty unprofessional though...

If you're paranoid, you can have git sign your commits, in which case
anyone could commit code under your name, but not using your private
key. You can then tell people to be suspicious of any commits they
can't cryptographically verify.

> I can't imagine Git magically pulling your name out of nowhere
> when it looks up the author of commits that are responsible for
> lines of code... Maybe you should report that to the mailing list
> and get to the bottom of it... I suspect that the explanation has
> nothing to do with any bugs in Git.

There are a few possibilities. If someone copied a slab of code from
the documentation repo straight into the code repo (maybe you provided
examples or something), git might detect that and recognize the
copying. In that case, you'd be (correctly) responsible for that code,
and the author would be a two-part "originally authored" pointing to
your docs commit and "moved or copied here by" pointing to the commit
that actually incorporated it. But if the repositories are completely
separate, this is unlikely. More likely, someone might be able to
cherry-pick the commit itself, if there is a corresponding file in
code; again, this would have a two-part authorship marker "author" and
"committer", because every git commit has this. (This is something
Mercurial lacks. Every commit is blamed to the person with the
commit-bit who pushed it, rather than the person who actually wrote
the code. Obviously the committer is important, but so is the author.)

If you want to get to the bottom of it, I would advise exploring the
commits that are tagged with your name. Do they look like changes you
made? Did you provide a patch file that someone else committed? And,
who committed the changes - can you email that person to ask for
clarification?

The beauty of git is that all the information is right there, if you
just look at it - 'git show 142857' will answer most of the above
questions, and add "--format=full" or "--format=fuller" [1] to get the
committer's info. Dig around... have fun!

[1] I mean, not "fuller", just... more formatful. Wait, what?

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Were is a great place to Share your finished projects? Natsu Dragneel <srentzsch10@gmail.com> - 2016-06-30 05:48 -0700
  Re: Were is a great place to Share your finished projects? Christian Gollwitzer <auriocus@gmx.de> - 2016-06-30 15:09 +0200
    Re: Were is a great place to Share your finished projects? MRAB <python@mrabarnett.plus.com> - 2016-06-30 15:03 +0100
    Re: Were is a great place to Share your finished projects? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-30 16:06 -0700
      Re: Were is a great place to Share your finished projects? Chris Angelico <rosuav@gmail.com> - 2016-07-01 09:13 +1000
      Re: Were is a great place to Share your finished projects? Random832 <random832@fastmail.com> - 2016-06-30 19:16 -0400
        Re: Were is a great place to Share your finished projects? Christian Gollwitzer <auriocus@gmx.de> - 2016-07-01 07:53 +0200
    Re: Were is a great place to Share your finished projects? Steven D'Aprano <steve@pearwood.info> - 2016-07-01 11:14 +1000
    Re: Were is a great place to Share your finished projects? Ben Finney <ben+python@benfinney.id.au> - 2016-07-01 11:38 +1000
      Re: Were is a great place to Share your finished projects? Christian Gollwitzer <auriocus@gmx.de> - 2016-07-01 07:41 +0200
        Re: Were is a great place to Share your finished projects? Ben Finney <ben+python@benfinney.id.au> - 2016-07-13 11:28 +1000
        Re: Were is a great place to Share your finished projects? Chris Angelico <rosuav@gmail.com> - 2016-07-13 13:39 +1000
        Re: Were is a great place to Share your finished projects? Ben Finney <ben+python@benfinney.id.au> - 2016-07-13 14:42 +1000
        Re: Were is a great place to Share your finished projects? Chris Angelico <rosuav@gmail.com> - 2016-07-13 15:11 +1000
          Re: Were is a great place to Share your finished projects? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-07-13 16:44 +1000
            Re: Were is a great place to Share your finished projects? Chris Angelico <rosuav@gmail.com> - 2016-07-13 17:00 +1000
              Re: Were is a great place to Share your finished projects? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-07-13 18:49 +1000
                Re: Were is a great place to Share your finished projects? Chris Angelico <rosuav@gmail.com> - 2016-07-13 19:20 +1000
            Re: Were is a great place to Share your finished projects? Michael Torrie <torriem@gmail.com> - 2016-07-13 22:07 -0600
              Re: Were is a great place to Share your finished projects? Paul Rubin <no.email@nospam.invalid> - 2016-07-13 21:49 -0700
              Re: Were is a great place to Share your finished projects? hasan.diwan@gmail.com - 2016-07-14 12:04 -0700
                Re: Were is a great place to Share your finished projects? Terry Reedy <tjreedy@udel.edu> - 2016-07-14 15:34 -0400
                Re: Were is a great place to Share your finished projects? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-07-14 16:04 -0700
                Re: Were is a great place to Share your finished projects? Steven D'Aprano <steve@pearwood.info> - 2016-07-15 10:39 +1000
                Re: Were is a great place to Share your finished projects? Brandon McCaig <bamccaig@gmail.com> - 2016-07-15 11:39 -0400
                Re: Were is a great place to Share your finished projects? Chris Angelico <rosuav@gmail.com> - 2016-07-16 02:12 +1000
                Re: Were is a great place to Share your finished projects? Marko Rauhamaa <marko@pacujo.net> - 2016-07-15 21:28 +0300
                Re: Were is a great place to Share your finished projects? Marko Rauhamaa <marko@pacujo.net> - 2016-07-15 21:57 +0300
                Re: Were is a great place to Share your finished projects? Brendan Abel <007brendan@gmail.com> - 2016-07-14 16:13 -0700
                Re: Were is a great place to Share your finished projects? Steven D'Aprano <steve@pearwood.info> - 2016-07-15 10:45 +1000
                Re: Were is a great place to Share your finished projects? Ben Finney <ben+python@benfinney.id.au> - 2016-07-15 11:11 +1000
          Re: Were is a great place to Share your finished projects? Rustom Mody <rustompmody@gmail.com> - 2016-07-13 06:03 -0700
            Re: Were is a great place to Share your finished projects? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-07-13 15:26 -0700
      Re: Were is a great place to Share your finished projects? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-30 23:51 -0700

csiph-web