git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] use natural ordering to display list of branches.

From
Mike Ralphson <mike.ralphson@gmail.com>
Date
Jun 6, 2008, 08:42 UTC
Message-ID
<e2b179460806060142y7edc92e4y7cbad6b3cfad1eac@mail.gmail.com>
In-Reply-To
<d45085aa0806051041y42ce467fq2e07371d225ccca3@mail.gmail.com>
2008/6/5 Cedric Vivier <cedricv@neonux.com>:
>
> This small patch makes git display list of branches in natural order.
> This way, when you name your branches against, for instance, a bug number from
> some bug-tracking tool, the list will show up in a natural/human/logical order.
[Included as part of patch:]
Show 19 quoted lines
> +
> +  strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
> +  Copyright (C) 2000, 2004 by Martin Pool <mbp sourcefrog net>
> +
> +  This software is provided 'as-is', without any express or implied
> +  warranty.  In no event will the authors be held liable for any damages
> +  arising from the use of this software.
> +
> +  Permission is granted to anyone to use this software for any purpose,
> +  including commercial applications, and to alter it and redistribute it
> +  freely, subject to the following restrictions:
> +
> +  1. The origin of this software must not be misrepresented; you must not
> +     claim that you wrote the original software. If you use this software
> +     in a product, an acknowledgment in the product documentation would be
> +     appreciated but is not required.
> +  2. Altered source versions must be plainly marked as such, and must not be
> +     misrepresented as being the original software.
> +  3. This notice may not be removed or altered from any source distribution.
2008/6/5 Junio C Hamano <gitster@pobox.com>:
Show 6 quoted lines
> Perhaps, as long as we somehow mark clearly the new files added with this
> patch as "borrowed code" and not part of git proper...
>...
>
> What the big license notice comment at the top says sounded Ok to me as
> well.

IANAL, but I'm not 100% sure clauses 2a or 3 are strictly GPL compatible (especially as "altered from" is unlikely to be interpreted in only one way).

Perhaps we can ask the original author (cc'd) if he is prepared to license it under GPL2?

I also think the license policy for inclusion in git should be spelt out in the documentation, i.e. GPL (2+), GPL2 only, GPL2 compatible etc. SubmittingPatches touches on this area, but only in terms of the DCoO. README merely states "Git is an Open Source project covered by the GNU General Public License."

Some c files state GPL v2 only, others v2 with the "any later version" wording.
I had the same issue when the replacement qsort() implementations came up.

As to the patch, I like the intent, but for consistency should it not also apply to tags?

Mike
Previous: Ask Bjørn HansenNext: Cedric Vivier
Message 24 of 27 in “use natural ordering to display list of branches.”
  1. use natural ordering to display list of branches.Cedric Vivier, Jun 5, 2008
  2. Johannes SchindelinJun 5, 2008
  3. Junio C HamanoJun 5, 2008
  4. Johannes SchindelinJun 5, 2008
  5. Cedric VivierJun 5, 2008
  6. Marius Storm-OlsenJun 5, 2008
  7. Paolo BonziniJun 6, 2008
  8. Johannes SchindelinJun 6, 2008
  9. Sverre RabbelierJun 6, 2008
  10. Paolo BonziniJun 6, 2008
  11. Brandon CaseyJun 6, 2008
  12. Cedric VivierJun 6, 2008
  13. Brandon CaseyJun 6, 2008
  14. Johannes SchindelinJun 6, 2008
  15. Junio C HamanoJun 6, 2008
  16. Asheesh LaroiaJun 6, 2008
  17. Jeff KingJun 7, 2008
  18. Cedric VivierJun 7, 2008
  19. Junio C HamanoJun 7, 2008
  20. Cedric VivierJun 7, 2008
  21. Junio C HamanoJun 7, 2008
  22. しらいしななこJun 6, 2008
  23. Ask Bjørn HansenJun 15, 2008
  24. Mike RalphsonJun 6, 2008
  25. Cedric VivierJun 6, 2008
  26. Mike RalphsonJun 6, 2008
  27. Andreas EricssonJun 9, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.