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

Re: [PATCH] Falis on commit --amend when already pushed

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Oct 15, 2015, 07:55 UTC
Message-ID
<vpqpp0g4lcd.fsf@grenoble-inp.fr>
In-Reply-To
<CACbztPMagPGhwKT4-eaQ2Ve95sACv=NpYSHixAgKxtGXe-mSCg@mail.gmail.com>
Tomohiro Koana <kntmhr.1221@gmail.com> writes:
> Thank you for the reply.

Please, do not top-post on this list. Look at how other people write emails and try to mimick them.

> I've taken a look at the list for small project ideas and our idea was
> on the list,
> which goes to show that what we are working on is reasonable enough :D

You may also want to look at how Mercurial does this. They have a complete system to classify commits: https://www.mercurial-scm.org/wiki/Phases

You're not going to do something as ambitious for a school project, but it may give you hints on what can be done.

> As for the test, we're not sure how to write a test because it
> involves remote branches, so we'd love to have advice on it.

"remote" does not have to be actually remote as in "on another computer". It can be another repository on the same machine.

Loot at what other tests are doing in t/ (there's a README file there too). Start with

  cd t/
  ls t*push*.sh
to get examples.
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Tomohiro Koana
Message 4 of 4 in “Falis on commit --amend when already pushed”
  1. Falis on commit --amend when already pushedTomohiro Koana, Oct 15, 2015
  2. Matthieu MoyOct 15, 2015
  3. Tomohiro KoanaOct 15, 2015
  4. Matthieu MoyOct 15, 2015

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.