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

Re: SeLinux integration

From
CJChristian Jaeger <christian@jaeger.mine.nu>
Date
Aug 18, 2008, 08:45 UTC
Message-ID
<48A93696.6010500@jaeger.mine.nu>
In-Reply-To
<6341D084-1A83-4C0F-8C45-943916612D48@gmx.de>
Jens Neuhalfen wrote:
> git://www.neuhalfen.name/git-selinux.git

I'm just an end user, too, so this isn't representing any official statement, but imho you should clean up your history before you publish it (and also, I think it would be a good idea to mention that your git repo is really including the upstream git so that people know they should use the --reference option to git clone to reuse the contents of a local upstream git to avoid pulling everything from your server):

- remove commits that don't make sense like your "XXX" file
- generally look over your history again and rework it so that it makes 
sense for a receiver (which is not necessarily the historic events of 
how you wrote it)
- follow the common commit message format (one line subject, the rest in 
the body and line wrapped)
- probably there's no reason to merge your history with historic events 
of the upstream git, so you should rebase your history onto some point 
of upstream.
You can do this by running

git branch last_upstream 053fd0c1c3da20474c4ff175c56ea4c1d6eeda11 git rebase --interactive last_upstream

(or alternatively (with the advantage that you can open and edit all patches at the same time, but the disadvantage that editing diffs is more difficult to get right than editing files in snapshots), by first creating patch files by running:

git format-patch master...last_upstream

then editing the patch files (and remove those which don't make sense) and then switch to the upstream branch and run "git-am --3way 00*patch", or replace 00*patch with the patch files in the order you want them applied).

Christian.
Previous: Jens NeuhalfenNext: Jens Neuhalfen
Message 2 of 7 in “SeLinux integration”
  1. Jens NeuhalfenAug 17, 2008
  2. Christian JaegerAug 18, 2008
  3. Jens NeuhalfenAug 18, 2008
  4. Christian JaegerAug 18, 2008
  5. Björn SteinbrinkAug 18, 2008
  6. Petr BaudisAug 18, 2008
  7. David P. QuigleyAug 18, 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.