==========================================
First of all, realize that to "commit" a change in git is a purely
local operation. It affects only the local repository (the .git/ dir)
-in your current grep/ hierarchy.
+in your current parted/ hierarchy.
To try this out, modify a file or two. If you create a new file, you'll
need to tell git about it with "git add new-file.c". Commit all changes
Make your changes on a private "topic" branch
=============================================
-So you checked out grep like this:
+So you checked out parted like this:
- git clone git://git.sv.gnu.org/grep
+ git clone git://git.debian.org/git/parted/parted.git
-Now, cd into the grep/ directory and run:
+Now, cd into the parted/ directory and run:
git checkout -b my-topic
Personally, no matter what package I'm working on, I find it useful to
put the ChangeLog entries *only* in the commit log, initially, unless
I plan to commit/push right away. Otherwise, I tend to get unnecessary
-merge conflicts with each rebase (see below). In grep, I've gone
+merge conflicts with each rebase (see below). In parted, I've gone
a step further, and no longer maintain an explicit ChangeLog file in
version control. Instead, in a git working directory, you can view
ChangeLog information via "git log". However, each distribution tarball
-grep-specific:
+Parted-specific:
No more ChangeLog files
=======================
-Do not modify any of the ChangeLog files in grep. Starting in
+Do not modify any of the ChangeLog files in parted. Starting in
2008, the policy changed. Before, we would insert the exact same text
(or worse, sometimes slightly differing) into both the ChangeLog file
and the commit log. Now we put that information only in the commit log,
Use SPACE-only indentation in all[*] files
==========================================
We use space-only indentation in nearly all files.
-If you use Emacs and your grep working directory name matches,
+If you use Emacs and your parted working directory name matches,
this code enables the right mode:
- ;; In grep, indent with spaces everywhere (not TABs).
+ ;; In parted, indent with spaces everywhere (not TABs).
;; Exceptions: Makefile and ChangeLog modes.
(add-hook 'find-file-hook '(lambda ()
(if (and buffer-file-name
- (string-match "/grep\\>" (buffer-file-name))
+ (string-match "/parted\\>" (buffer-file-name))
(not (string-equal mode-name "Change Log"))
(not (string-equal mode-name "Makefile")))
(setq indent-tabs-mode nil))))
Avoid trailing white space
==========================
-You may notice that the only trailing blanks in grep's
+You may notice that the only trailing blanks in parted's
version-controlled files are in a single directory: tests/pr,
which contains expected output from various invocations of pr.
# run whatever tests you want, i.e.:
make check
# run lcov
- lcov -t grep -q -d lib -b lib -o lib.lcov -c
- lcov -t grep -q -d src -b src -o src.lcov -c
+ lcov -t parted -q -d libparted -b lib -o lib.lcov -c
+ lcov -t parted -q -d parted -b src -o src.lcov -c
# generate HTML from the output
- genhtml -p `pwd` -t grep -q --output-directory lcov-html *.lcov
+ genhtml -p `pwd` -t parted -q --output-directory lcov-html *.lcov
Then just open the index.html file (in the generated lcov-html directory)
in your favorite web browser.
========================================================================
-Copyright (C) 2009-2010 Free Software Foundation, Inc.
+Copyright (C) 2009-2012 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or