> > no, the tags are passed as arguments in the scan command. Okay :) > Thank you for the detailed explaination, something like this would > > appropriate? > > hashlib.sha1('blob ' + str(len(file_content)) + '\0' + > > file_content).hexdigest() > > it seems ok, but of course you need to test it. > but also think about how to handle large files: > you probably shouldn't read the complete contents > in memory at once. > I think it would be better to read a large file as small chunks and update the hash each time to prevent memory issues. > > I have more experience with Python than C, so would it be okay to use > > Python for this project? > > sure, Python (3, obviously) would be acceptable. Yup, Python 3 for sure. I am almost done writing the propsal. Can you review my proposal when its done, it would be nice to get your suggestions.
---- Λαμβάνετε αυτό το μήνυμα απο την λίστα: Γενική λίστα αλληλογραφίας που απευθύνεται σε developers/contributors έργων ανοικτού λογισμικού - A general discussion list for developers/contributors of open-source projects, https://lists.ellak.gr/opensource-devs/listinfo.html Μπορείτε να απεγγραφείτε από τη λίστα στέλνοντας κενό μήνυμα ηλ. ταχυδρομείου στη διεύθυνση <opensource-devs+unsubscribe [ at ] ellak [ dot ] gr>.