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

Code reuse

From
Philip Herron <herron.philip@googlemail.com>
Date
Oct 6, 2009, 19:18 UTC
Message-ID
<ac07bcaf0910061218x148374d0u66b36fae1466ea98@mail.gmail.com>
Hey guys

I am not sure if this is the right place to ask this question, but I've been working on a personal project a programming language interpreter for some time now, but i took 2 code snippets from git-core namely:

static struct hash_table_entry *lookup_hash_entry(unsigned int hash, const struct hash_table *table)

function from hash.c and the alloc_nr.

I've changed it a good bit (probably doesn't resemble much of what it was) to fit in with the way my stuff works but is there anything i need to like put in my source code to say hey this is based of git-core, so far is just a comment to say 'based of git-core hash.c'. Its an open source (GPL) program but i haven't released or made much noise about it yet because i want to work on it more myself.

Anyways thanks,
--Phil
Next: Sitaram Chamarty
Message 1 of 4 in “Code reuse”
  1. Philip HerronOct 6, 2009
  2. Sitaram ChamartyOct 7, 2009
  3. Philip HerronOct 7, 2009
  4. Florian WeimerOct 7, 2009

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.